summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-26 16:09:58 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-26 16:52:08 +0300
commit929aeb1591e739588cd8cf629e7d7ac5a95261b1 (patch)
tree2b61b477d0e0ffed31a90ba2d6c019da926282aa /src/game.cpp
parentb661524e8b7b41cec237492ecd52fdda7b9be394 (diff)
downloadplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip
add surface allocation debug code.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9a18e9da7..962d8562e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -96,6 +96,7 @@
#include "utils/mkdir.h"
#include "utils/physfstools.h"
#include "utils/process.h"
+#include "utils/sdlcheckutils.h"
#include <guichan/exception.hpp>
#include <guichan/focushandler.hpp>
@@ -553,7 +554,7 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot)
logger->log1("Error: could not save screenshot.");
}
- SDL_FreeSurface(screenshot);
+ MSDL_FreeSurface(screenshot);
return success;
}