Mercurial > sdl-ios-xcode
changeset 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 | 6b34c9dcf74c |
children | 7853b6af5957 |
files | src/video/wincommon/SDL_sysmouse.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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 )