From 62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Mar 2013 02:18:45 +0300 Subject: Add missing breaks and fix possible memory leak. --- src/touchmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/touchmanager.cpp') diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp index f8768c824..8f9f20964 100644 --- a/src/touchmanager.cpp +++ b/src/touchmanager.cpp @@ -151,6 +151,10 @@ void TouchManager::loadTouchItem(TouchItem **item, std::string name, fAll, fPressed, fReleased, fOut); mObjects.push_back(*item); } + else + { + delete images; + } theme->unload(skin); } else -- cgit v1.2.3-70-g09d2