[Scummvm-cvs-logs] SF.net SVN: scummvm: [22800] scummvm/trunk/engines/lure

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed May 31 06:37:03 CEST 2006


Revision: 22800
Author:   eriktorbjorn
Date:     2006-05-31 06:36:01 -0700 (Wed, 31 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22800&view=rev

Log Message:
-----------
Fixed two Valgrind warnings. But there are still a couple of invalid reads
at startup.

Modified Paths:
--------------
    scummvm/trunk/engines/lure/game.cpp
    scummvm/trunk/engines/lure/res.cpp
Modified: scummvm/trunk/engines/lure/game.cpp
===================================================================
--- scummvm/trunk/engines/lure/game.cpp	2006-05-31 12:27:05 UTC (rev 22799)
+++ scummvm/trunk/engines/lure/game.cpp	2006-05-31 13:36:01 UTC (rev 22800)
@@ -93,6 +93,8 @@
 	//_screen.resetPalette();
 	screen.setPaletteEmpty();
 
+	setState(0);
+
 	Script::execute(STARTUP_SCRIPT);
 
 	// Load the first room

Modified: scummvm/trunk/engines/lure/res.cpp
===================================================================
--- scummvm/trunk/engines/lure/res.cpp	2006-05-31 12:27:05 UTC (rev 22799)
+++ scummvm/trunk/engines/lure/res.cpp	2006-05-31 13:36:01 UTC (rev 22800)
@@ -61,7 +61,7 @@
 	free(_hotspotScriptData);
 	delete _messagesData;
 	delete _cursors;
-	delete _charOffsets;
+	delete [] _charOffsets;
 	delete _playerSupportRecord;
 }
 


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