1
0
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:
Mathieu Schroeter 2017-08-11 23:22:28 +02:00
parent d983422866
commit c9aea77afc

View File

@ -785,6 +785,7 @@ on the endianness (byte order) of the machine */
// FIXME: change cursor first value to 0
m_lpSDLCursors[sprite - 1] =
SDL_CreateColorCursor (surface, hotspot.x, hotspot.y);
SDL_FreeSurface (surface);
}
}