diff options
Diffstat (limited to 'engines/lab/savegame.cpp')
-rw-r--r-- | engines/lab/savegame.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lab/savegame.cpp b/engines/lab/savegame.cpp index d08dcbc24d..9802fc548e 100644 --- a/engines/lab/savegame.cpp +++ b/engines/lab/savegame.cpp @@ -231,6 +231,7 @@ bool LabEngine::saveRestoreGame() { isOK = saveGame(slot, desc); } + delete dialog; } else { // Restore GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false); @@ -240,6 +241,7 @@ bool LabEngine::saveRestoreGame() { if (isOK) _music->resetMusic(); } + delete dialog; } _alternate = false; |