Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40507
This commit is contained in:
parent
3d1ff0f23e
commit
1af95cab8a
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ static void memxor(Uint8 *dst, Uint8 *src1, Uint8 *src2, int len)
|
||||||
void WIN_FreeWMCursor(_THIS, WMcursor *cursor)
|
void WIN_FreeWMCursor(_THIS, WMcursor *cursor)
|
||||||
{
|
{
|
||||||
#ifndef USE_STATIC_CURSOR
|
#ifndef USE_STATIC_CURSOR
|
||||||
|
if ( cursor->curs == GetCursor() )
|
||||||
|
SetCursor(NULL);
|
||||||
if ( cursor->curs != NULL )
|
if ( cursor->curs != NULL )
|
||||||
DestroyCursor(cursor->curs);
|
DestroyCursor(cursor->curs);
|
||||||
if ( cursor->ands != NULL )
|
if ( cursor->ands != NULL )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue