mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix leak by freeing the cursor surface
This commit is contained in:
parent
d983422866
commit
c9aea77afc
@ -785,6 +785,7 @@ on the endianness (byte order) of the machine */
|
|||||||
// FIXME: change cursor first value to 0
|
// FIXME: change cursor first value to 0
|
||||||
m_lpSDLCursors[sprite - 1] =
|
m_lpSDLCursors[sprite - 1] =
|
||||||
SDL_CreateColorCursor (surface, hotspot.x, hotspot.y);
|
SDL_CreateColorCursor (surface, hotspot.x, hotspot.y);
|
||||||
|
SDL_FreeSurface (surface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user