summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-09 02:12:52 +0200
committerTreeki <treeki@gmail.com>2013-04-09 02:12:52 +0200
commit04210e256b41de90bec58eac8c82342e46d0d29d (patch)
treed47c0b01684f00a6c59aaf293c8765def66f80ad
parent3fdfdf680f89a7c9df888f24e14ea21c740b00fa (diff)
downloadkamek-04210e256b41de90bec58eac8c82342e46d0d29d.tar.gz
kamek-04210e256b41de90bec58eac8c82342e46d0d29d.zip
fix Credits Manager memory leak
-rw-r--r--src/creditsMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/creditsMgr.cpp b/src/creditsMgr.cpp
index 216b78b..a84fe40 100644
--- a/src/creditsMgr.cpp
+++ b/src/creditsMgr.cpp
@@ -165,7 +165,7 @@ int dCreditsMgr_c::onCreate() {
int dCreditsMgr_c::onDelete() {
scriptLoader.unload();
- return layout.free();
+ return layout.free() && titleLayout.free();
}
extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);
int dCreditsMgr_c::onExecute() {