From 16483fcf34dbe029ccb67a9d7966c5d904b0bf79 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 4 Dec 2010 02:50:27 +0000 Subject: BASE: Only clear debug channels after destructing the engine object in runGame. This should fix missing debugC output when the engine object uses debugC etc. in its destructor (or functions called from there). In theory all the engines should do that themselves, but to avoid any issues because of them not doing it we still do it here to be safe. svn-id: r54757 --- base/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/main.cpp') diff --git a/base/main.cpp b/base/main.cpp index f4cd2a531e..2437e85897 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -220,12 +220,12 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const // Inform backend that the engine finished system.engineDone(); - // We clear all debug levels again even though the engine should do it - DebugMan.clearAllDebugChannels(); - // Free up memory delete engine; + // We clear all debug levels again even though the engine should do it + DebugMan.clearAllDebugChannels(); + // Reset the file/directory mappings SearchMan.clear(); -- cgit v1.2.3