diff options
author | David Turner | 2010-03-30 02:13:49 +0000 |
---|---|---|
committer | David Turner | 2010-03-30 02:13:49 +0000 |
commit | 067fbe23f6e9b3dafb4b36ea2e9a80668c7c1d8c (patch) | |
tree | 5a9e3f6af7da47829432ec20a9395f5b55e165fc | |
parent | 3da0c234ea337d27b0907328828725ee87b1237e (diff) | |
download | scummvm-rg350-067fbe23f6e9b3dafb4b36ea2e9a80668c7c1d8c.tar.gz scummvm-rg350-067fbe23f6e9b3dafb4b36ea2e9a80668c7c1d8c.tar.bz2 scummvm-rg350-067fbe23f6e9b3dafb4b36ea2e9a80668c7c1d8c.zip |
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
-rw-r--r-- | engines/lure/surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |