[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.569,1.570

Gregory Montoir cyx at users.sourceforge.net
Thu Sep 8 12:27:36 CEST 2005


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

Modified Files:
	scumm.cpp 
Log Message:
added missing calls to destructors in ScummEngine_v70he and ScummEngine_v90he

Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.569
retrieving revision 1.570
diff -u -d -r1.569 -r1.570
--- scumm.cpp	8 Sep 2005 19:21:27 -0000	1.569
+++ scumm.cpp	8 Sep 2005 19:26:43 -0000	1.570
@@ -1451,6 +1451,8 @@
 }
 
 ScummEngine_v70he::~ScummEngine_v70he() {
+	delete _resExtractor;
+	delete _wiz;
 	free(_heV7DiskOffsets);
 	free(_heV7RoomIntOffsets);
 	free(_heV7RoomOffsets);
@@ -1490,11 +1492,11 @@
 
 ScummEngine_v90he::ScummEngine_v90he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16], int substResFileNameIndex)
 	: ScummEngine_v80he(detector, syst, gs, md5sum, substResFileNameIndex) {
-
 	_sprite = new Sprite(this);
 }
 
 ScummEngine_v90he::~ScummEngine_v90he() {
+	delete _sprite;
 	if (_heversion >= 98) {
 		delete _logicHE;
 	}





More information about the Scummvm-git-logs mailing list