# HG changeset patch # User Sam Lantinga # Date 1033796792 0 # Node ID f097dba83975e0b2b81f00799d58355421c535cf # Parent 6b34c9dcf74c1de5e5130f8579579988743d10de Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!) diff -r 6b34c9dcf74c -r f097dba83975 src/video/wincommon/SDL_sysmouse.c --- 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 )