Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)

This commit is contained in:
Sam Lantinga
2002-10-05 05:46:32 +00:00
parent f25145d50f
commit 9365ca6825

View File

@@ -95,6 +95,8 @@ static void memxor(Uint8 *dst, Uint8 *src1, Uint8 *src2, int len)
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 )