mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 16:45:57 -05:00
Bug 1787 - memory leak in WIN_InitMouse() by Marcel Bakker
This commit is contained in:
@@ -240,6 +240,12 @@ WIN_InitMouse(_THIS)
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user