From d87a08e1dfdc8bd77e7f991b9ead95980befbccc Mon Sep 17 00:00:00 2001 From: bgk Date: Sat, 13 Sep 2008 16:52:11 +0000 Subject: [PATCH] SDL : Fix small memory leak (patch by chrono) git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@722 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/sdl/SDL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl/SDL.cpp b/src/sdl/SDL.cpp index 451483f3..dee8a518 100644 --- a/src/sdl/SDL.cpp +++ b/src/sdl/SDL.cpp @@ -1056,6 +1056,10 @@ void sdlWriteBackupStateExchange(int from, int to, int backup) systemConsoleMessage("Savestate store and backup committed"); // with timestamp and newline fprintf(stdout, "to slot %d, backup in %d, using temporary slot %d\n", to+1, backup+1, from+1); + + free(stateNameOrig); + free(stateNameDest); + free(stateNameBack); } void sdlWriteBattery()