[Scummvm-cvs-logs] SF.net SVN: scummvm:[54164]	scummvm/trunk/engines/mohawk/riven_scripts.cpp
    mthreepwood at users.sourceforge.net 
    mthreepwood at users.sourceforge.net
       
    Tue Nov  9 19:38:36 CET 2010
    
    
  
Revision: 54164
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54164&view=rev
Author:   mthreepwood
Date:     2010-11-09 18:38:35 +0000 (Tue, 09 Nov 2010)
Log Message:
-----------
MOHAWK: Fix memory leaks (thanks to digitall for finding)
Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/riven_scripts.cpp
Modified: scummvm/trunk/engines/mohawk/riven_scripts.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/riven_scripts.cpp	2010-11-09 17:07:34 UTC (rev 54163)
+++ scummvm/trunk/engines/mohawk/riven_scripts.cpp	2010-11-09 18:38:35 UTC (rev 54164)
@@ -344,6 +344,11 @@
 	// Play the requested sound list
 	_vm->_sound->playSLST(slstRecord);
 	_vm->_activatedSLST = true;
+
+	delete[] slstRecord.sound_ids;
+	delete[] slstRecord.volumes;
+	delete[] slstRecord.balances;
+	delete[] slstRecord.u2;
 }
 
 // Command 4: play local tWAV resource (twav_id, volume, block)
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