Bug 1787 - memory leak in WIN_InitMouse() by Marcel Bakker
This commit is contained in:
parent
742233249a
commit
8836a99081
1 changed files with 6 additions and 0 deletions
|
@ -240,6 +240,12 @@ WIN_InitMouse(_THIS)
|
||||||
void
|
void
|
||||||
WIN_QuitMouse(_THIS)
|
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 */
|
#endif /* SDL_VIDEO_DRIVER_WINDOWS */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue