src/video/windows/SDL_windowsmouse.c
changeset 7103 9d146930d4f2
parent 7037 3fedf1f25b94
child 7191 75360622e65f
--- a/src/video/windows/SDL_windowsmouse.c	Wed Apr 24 11:49:52 2013 -0300
+++ b/src/video/windows/SDL_windowsmouse.c	Wed Apr 24 12:22:08 2013 -0300
@@ -240,6 +240,12 @@
 void
 WIN_QuitMouse(_THIS)
 {
+    SDL_Mouse *mouse = SDL_GetMouse();
+    if ( mouse->def_cursor ) {
+        SDL_free(mouse->def_cursor);
+        mouse->def_cursor = NULL;
+        mouse->cur_cursor = NULL;
+    }
 }
 
 #endif /* SDL_VIDEO_DRIVER_WINDOWS */