mirror of
https://github.com/yawut/SDL.git
synced 2026-09-11 10:36:27 -05:00
Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user