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

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Tue Mar 30 04:13:49 CEST 2010


Revision: 48421
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48421&view=rev
Author:   tdhs
Date:     2010-03-30 02:13:49 +0000 (Tue, 30 Mar 2010)

Log Message:
-----------
Fix for Lure memory error indicated by Valgrind on Restart/Restore Screen (Temptress over Castle).

This screen is displayed if you lose the fight with the Skorl in the Dragon Caves etc.

This fix should be reviewed and then backported to v1.1.0 branch.

Modified Paths:
--------------
    scummvm/trunk/engines/lure/surface.cpp

Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp	2010-03-30 00:59:08 UTC (rev 48420)
+++ scummvm/trunk/engines/lure/surface.cpp	2010-03-30 02:13:49 UTC (rev 48421)
@@ -1137,7 +1137,7 @@
 	int highlightedButton = -1;
 
 	if (!restartFlag) {
-		Memory::dealloc(firstSave);
+		delete firstSave;
 
 		// Get the correct button bounds record to use
 		const RestartRecord *btnRecord = &buttonBounds[0];


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