Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_sysmouse.c @ 506:f097dba83975
Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Oct 2002 05:46:32 +0000 |
parents | e8157fcb3114 |
children | 5c74ac147358 |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysmouse.c Sat Oct 05 05:44:09 2002 +0000 +++ b/src/video/wincommon/SDL_sysmouse.c Sat Oct 05 05:46:32 2002 +0000 @@ -95,6 +95,8 @@ void WIN_FreeWMCursor(_THIS, WMcursor *cursor) { #ifndef USE_STATIC_CURSOR + if ( cursor->curs == GetCursor() ) + SetCursor(NULL); if ( cursor->curs != NULL ) DestroyCursor(cursor->curs); if ( cursor->ands != NULL )