Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
authorSam Lantinga <slouken@libsdl.org>
Sat, 05 Oct 2002 05:46:32 +0000
changeset 506f097dba83975
parent 505 6b34c9dcf74c
child 507 7853b6af5957
Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
src/video/wincommon/SDL_sysmouse.c
     1.1 --- a/src/video/wincommon/SDL_sysmouse.c	Sat Oct 05 05:44:09 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysmouse.c	Sat Oct 05 05:46:32 2002 +0000
     1.3 @@ -95,6 +95,8 @@
     1.4  void WIN_FreeWMCursor(_THIS, WMcursor *cursor)
     1.5  {
     1.6  #ifndef USE_STATIC_CURSOR
     1.7 +	if ( cursor->curs == GetCursor() )
     1.8 +		SetCursor(NULL);
     1.9  	if ( cursor->curs != NULL )
    1.10  		DestroyCursor(cursor->curs);
    1.11  	if ( cursor->ands != NULL )