From 067fbe23f6e9b3dafb4b36ea2e9a80668c7c1d8c Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 30 Mar 2010 02:13:49 +0000 Subject: 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. svn-id: r48421 --- engines/lure/surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/lure') diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index 4a087fbf36..c4ee0f7dad 100644 --- a/engines/lure/surface.cpp +++ b/engines/lure/surface.cpp @@ -1137,7 +1137,7 @@ bool RestartRestoreDialog::show() { int highlightedButton = -1; if (!restartFlag) { - Memory::dealloc(firstSave); + delete firstSave; // Get the correct button bounds record to use const RestartRecord *btnRecord = &buttonBounds[0]; -- cgit v1.2.3