aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2009-04-30 15:55:59 +0000
committerSven Hesse2009-04-30 15:55:59 +0000
commitdf9932669a5d8b046f9b78fc7004982adc4b119b (patch)
tree10aa27c2d47d9c139e98b2e28202a00d2cd5ba05
parentee10b1a1969313bb9a1d573da14e93875edc25e3 (diff)
downloadscummvm-rg350-df9932669a5d8b046f9b78fc7004982adc4b119b.tar.gz
scummvm-rg350-df9932669a5d8b046f9b78fc7004982adc4b119b.tar.bz2
scummvm-rg350-df9932669a5d8b046f9b78fc7004982adc4b119b.zip
Plugging leaks
svn-id: r40215
-rw-r--r--engines/gob/init.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp
index f1af92f773..7f943c068f 100644
--- a/engines/gob/init.cpp
+++ b/engines/gob/init.cpp
@@ -104,6 +104,9 @@ void Init::initGame() {
scnPlayer.play(_vm->_startTot);
+ delete _palDesc;
+ _vm->_video->initPrimary(-1);
+ cleanup();
return;
}
@@ -114,6 +117,9 @@ void Init::initGame() {
batPlayer.play(_vm->_startTot);
+ delete _palDesc;
+ _vm->_video->initPrimary(-1);
+ cleanup();
return;
}