From df9932669a5d8b046f9b78fc7004982adc4b119b Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 30 Apr 2009 15:55:59 +0000 Subject: Plugging leaks svn-id: r40215 --- engines/gob/init.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3