From 48a10f839f12790b3ec1f6cb5c50820180ae8339 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Jul 2016 18:43:12 +0300 Subject: Fix some issues detected by cppcheck. --- src/resources/mobileopenglscreenshothelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2