summaryrefslogtreecommitdiff
path: root/src/resources/mobileopenglscreenshothelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-29 18:43:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-29 18:43:12 +0300
commit48a10f839f12790b3ec1f6cb5c50820180ae8339 (patch)
treec1b5d126b9b48fc10a8ed8c49d9ffd8ea0cda46f /src/resources/mobileopenglscreenshothelper.cpp
parentcad5251c84edb51ddc3180d992eeea043022a216 (diff)
downloadmanaverse-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.gz
manaverse-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.bz2
manaverse-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.xz
manaverse-48a10f839f12790b3ec1f6cb5c50820180ae8339.zip
Fix some issues detected by cppcheck.
Diffstat (limited to 'src/resources/mobileopenglscreenshothelper.cpp')
-rw-r--r--src/resources/mobileopenglscreenshothelper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/mobileopenglscreenshothelper.cpp b/src/resources/mobileopenglscreenshothelper.cpp
index e6da43e95..57f024031 100644
--- a/src/resources/mobileopenglscreenshothelper.cpp
+++ b/src/resources/mobileopenglscreenshothelper.cpp
@@ -82,6 +82,7 @@ SDL_Surface *MobileOpenGLScreenshotHelper::getScreenshot()
if (!screenshot)
{
MSDL_FreeSurface(tmpImage);
+ delete [] buf;
return nullptr;
}