From f54a97a02cfcf7abf8fd06cbed25aa7bba7d41ee Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 4 Feb 2007 15:45:15 +0000 Subject: - Plugged some leaks and fixed some memory errors - Fixed the cursor animation loops in Ween and Bargon - Added Draw_Bargon + Inter_Bargon - Implemented Bargon Attack's hardcoded intro parts svn-id: r25387 --- engines/gob/mult_v2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/gob/mult_v2.cpp') diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp index 0fc1ba9770..89d08b7f03 100644 --- a/engines/gob/mult_v2.cpp +++ b/engines/gob/mult_v2.cpp @@ -1304,9 +1304,10 @@ void Mult_v2::playSound(Snd::SoundDesc * soundDesc, int16 repCount, int16 freq, } void Mult_v2::freeMult(void) { - if (_vm->_anim->_animSurf != 0) - delete _vm->_anim->_animSurf; + if ((_vm->_anim->_animSurf != 0) && (_vm->_draw->_spritesArray[22] != 0)) + _vm->_video->freeSurfDesc(_vm->_anim->_animSurf); _vm->_anim->_animSurf = 0; + _vm->_draw->_spritesArray[22] = 0; delete[] _objects; delete[] _renderData2; -- cgit v1.2.3