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
This commit is contained in:
David Turner 2010-03-30 02:13:49 +00:00
parent 3da0c234ea
commit 067fbe23f6

View File

@ -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];