[Scummvm-cvs-logs] SF.net SVN: scummvm:[54757] scummvm/trunk/base/main.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Dec 4 03:50:27 CET 2010
Revision: 54757
http://scummvm.svn.sourceforge.net/scummvm/?rev=54757&view=rev
Author: lordhoto
Date: 2010-12-04 02:50:27 +0000 (Sat, 04 Dec 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/base/main.cpp
Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp 2010-12-03 19:43:27 UTC (rev 54756)
+++ scummvm/trunk/base/main.cpp 2010-12-04 02:50:27 UTC (rev 54757)
@@ -220,12 +220,12 @@
// Inform backend that the engine finished
system.engineDone();
+ // Free up memory
+ delete engine;
+
// We clear all debug levels again even though the engine should do it
DebugMan.clearAllDebugChannels();
- // Free up memory
- delete engine;
-
// Reset the file/directory mappings
SearchMan.clear();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list