From 929aeb1591e739588cd8cf629e7d7ac5a95261b1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Aug 2013 16:09:58 +0300 Subject: add surface allocation debug code. --- src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index c98dfeb82..fef6f98ed 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -106,6 +106,7 @@ #include "utils/paths.h" #include "utils/physfstools.h" #include "utils/process.h" +#include "utils/sdlcheckutils.h" #include "utils/sdlhelper.h" #include "utils/translation/translationmanager.h" @@ -833,7 +834,7 @@ void Client::gameClear() if (logger) logger->log1("Quitting8"); - SDL_FreeSurface(mIcon); + MSDL_FreeSurface(mIcon); if (logger) logger->log1("Quitting9"); @@ -3078,7 +3079,7 @@ void Client::setIcon() if (icon) SetClassLong(pInfo.window, GCL_HICON, reinterpret_cast(icon)); #else - mIcon = IMG_Load(iconFile.c_str()); + mIcon = MIMG_Load(iconFile.c_str()); if (mIcon) { #ifdef USE_SDL2 -- cgit v1.2.3-70-g09d2