[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.71,1.72

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Tue Jun 29 23:47:16 CEST 2004


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

Modified Files:
	scumm.cpp 
Log Message:
Initialise _numImages to zero, along with the other _num<whatever>
variables. This fixes a Valgrind error, and the "Invalid allocation size"
errors I got when running ScummVM in GDB under MinGW yesterday.


Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- scumm.cpp	29 Jun 2004 12:10:08 -0000	1.71
+++ scumm.cpp	30 Jun 2004 06:46:32 -0000	1.72
@@ -449,6 +449,7 @@
 	_numGlobalScripts = 0;
 	_numActors = 0;
 	_numCostumes = 0;
+	_numImages = 0;
 	_audioNames = NULL;
 	_numAudioNames = 0;
 	_curActor = 0;





More information about the Scummvm-git-logs mailing list