aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2015-11-25 00:12:49 +0100
committerStrangerke2015-11-25 00:12:49 +0100
commit4cf4387ce42a655a30d37b8a54e6eacf64d14158 (patch)
tree59d1dd6d75960c2cf2b2970fed8f954674f6381d
parent1b9f1eed88612e1d217e3b6ec60fa8fb6e116117 (diff)
downloadscummvm-rg350-4cf4387ce42a655a30d37b8a54e6eacf64d14158.tar.gz
scummvm-rg350-4cf4387ce42a655a30d37b8a54e6eacf64d14158.tar.bz2
scummvm-rg350-4cf4387ce42a655a30d37b8a54e6eacf64d14158.zip
MADS: Nebular - Fix two memory leaks in dialogs
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 960a2cc2f4..a5c6a56049 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -366,6 +366,8 @@ void DialogsNebular::showScummVMSaveDialog() {
// Flag for scene loading that we're returning from a dialog
scene._currentSceneId = RETURNING_FROM_DIALOG;
+
+ delete dialog;
}
void DialogsNebular::showScummVMRestoreDialog() {
@@ -382,6 +384,8 @@ void DialogsNebular::showScummVMRestoreDialog() {
// Flag for scene loading that we're returning from a dialog
scene._currentSceneId = RETURNING_FROM_DIALOG;
}
+
+ delete dialog;
}
/*------------------------------------------------------------------------*/