From c9aea77afcc3d1d772c7d30b05408e9eaf4a8f47 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Fri, 11 Aug 2017 23:22:28 +0200 Subject: [PATCH] Fix leak by freeing the cursor surface --- src/pixmap.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pixmap.cxx b/src/pixmap.cxx index 8dc7b4a..f245303 100644 --- a/src/pixmap.cxx +++ b/src/pixmap.cxx @@ -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); } }