diff options
author | Johannes Schickel | 2010-12-04 02:50:27 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-12-04 02:50:27 +0000 |
commit | 16483fcf34dbe029ccb67a9d7966c5d904b0bf79 (patch) | |
tree | e4dfecd82cc724b389b2a853ac5a307e28ab0a49 | |
parent | 5884f5a7ac1ca83e702f44cd4ecfc56dcfaf2490 (diff) | |
download | scummvm-rg350-16483fcf34dbe029ccb67a9d7966c5d904b0bf79.tar.gz scummvm-rg350-16483fcf34dbe029ccb67a9d7966c5d904b0bf79.tar.bz2 scummvm-rg350-16483fcf34dbe029ccb67a9d7966c5d904b0bf79.zip |
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
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |