mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
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:
parent
3da0c234ea
commit
067fbe23f6
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user