[Scummvm-cvs-logs] CVS: scummvm/scumm sound_he.cpp,2.20,2.21

kirben kirben at users.sourceforge.net
Thu Jan 26 22:37:00 CET 2006


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30015/scumm

Modified Files:
	sound_he.cpp 
Log Message:
Fix another memory leak in HE games.


Index: sound_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound_he.cpp,v
retrieving revision 2.20
retrieving revision 2.21
diff -u -d -r2.20 -r2.21
--- sound_he.cpp	21 Jan 2006 13:01:19 -0000	2.20
+++ sound_he.cpp	27 Jan 2006 06:35:54 -0000	2.21
@@ -404,6 +404,7 @@
 			sound = (char *)malloc(size * 4);
 			size = voxStream->readBuffer((int16*)sound, size * 2);
 			size *= 2; // 16bits.
+			delete(voxStream);
 		} else {
 			// Allocate a sound buffer, copy the data into it, and play
 			sound = (char *)malloc(size);





More information about the Scummvm-git-logs mailing list