Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Bug 1787 - memory leak in WIN_InitMouse() by Marcel Bakker
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Apr 24, 2013
1 parent 74c7dff commit 4d375fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/video/windows/SDL_windowsmouse.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 4d375fc

Please sign in to comment.