From 04210e256b41de90bec58eac8c82342e46d0d29d Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 9 Apr 2013 02:12:52 +0200 Subject: fix Credits Manager memory leak --- src/creditsMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() { -- cgit v1.2.3