[Scummvm-cvs-logs] SF.net SVN: scummvm: [32332] scummvm/branches/gsoc2008-rtl/engines/cine

cpage88 at users.sourceforge.net cpage88 at users.sourceforge.net
Wed May 28 01:26:48 CEST 2008


Revision: 32332
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32332&view=rev
Author:   cpage88
Date:     2008-05-27 16:26:48 -0700 (Tue, 27 May 2008)

Log Message:
-----------
CINE: Fixed two memory leaks when shutting down the CINE engine

Modified Paths:
--------------
    scummvm/branches/gsoc2008-rtl/engines/cine/cine.cpp
    scummvm/branches/gsoc2008-rtl/engines/cine/sound.cpp

Modified: scummvm/branches/gsoc2008-rtl/engines/cine/cine.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/cine/cine.cpp	2008-05-27 21:18:21 UTC (rev 32331)
+++ scummvm/branches/gsoc2008-rtl/engines/cine/cine.cpp	2008-05-27 23:26:48 UTC (rev 32332)
@@ -42,7 +42,6 @@
 #include "cine/sound.h"
 #include "cine/various.h"
 
-
 namespace Cine {
 
 Sound *g_sound;
@@ -70,6 +69,9 @@
 		freeErrmessDat();
 	}
 	Common::clearAllSpecialDebugLevels();
+
+	free(partBuffer);
+	free(textDataPtr);
 }
 
 int CineEngine::init() {

Modified: scummvm/branches/gsoc2008-rtl/engines/cine/sound.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/cine/sound.cpp	2008-05-27 21:18:21 UTC (rev 32331)
+++ scummvm/branches/gsoc2008-rtl/engines/cine/sound.cpp	2008-05-27 23:26:48 UTC (rev 32332)
@@ -249,6 +249,7 @@
 
 AdlibSoundDriver::~AdlibSoundDriver() {
 	_mixer->stopHandle(_soundHandle);
+	OPLDestroy(_opl);
 }
 
 void AdlibSoundDriver::setupChannel(int channel, const byte *data, int instrument, int volume) {


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