aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-06-20 19:23:04 +0000
committerPaweł Kołodziejski2004-06-20 19:23:04 +0000
commitce0e71dd1c3a3c0577695ccb19d619064a90522a (patch)
tree59d0b43a43f7e6156aa0b8116f94a3120bb0b40d
parentdad34825008fdcebd0ae869cfaea13dfda5fcaa7 (diff)
downloadscummvm-rg350-ce0e71dd1c3a3c0577695ccb19d619064a90522a.tar.gz
scummvm-rg350-ce0e71dd1c3a3c0577695ccb19d619064a90522a.tar.bz2
scummvm-rg350-ce0e71dd1c3a3c0577695ccb19d619064a90522a.zip
now it should be in cvs
svn-id: r13982
-rw-r--r--base/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 8b51db65bb..1d63578c63 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -262,11 +262,11 @@ static void runGame(GameDetector &detector, OSystem *system) {
// Run the game engine
engine->go();
- // Stop all sound processing now (this prevents some race conditions later on)
- system->clearSoundCallback();
-
// Free up memory
delete engine;
+
+ // Stop all sound processing now (this prevents some race conditions later on)
+ system->clearSoundCallback();
}
#ifndef _WIN32_WCE