diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-10 02:18:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-10 02:18:45 +0300 |
commit | 62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608 (patch) | |
tree | 0bd5c8923ddb101c70aa3038629b6a1741360d16 /src/touchmanager.cpp | |
parent | 11c9ec2609047da6794bacec4676895012767694 (diff) | |
download | manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.gz manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.bz2 manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.xz manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.zip |
Add missing breaks and fix possible memory leak.
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r-- | src/touchmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |