[Scummvm-cvs-logs] scummvm master -> 4cf4387ce42a655a30d37b8a54e6eacf64d14158

Strangerke Strangerke at scummvm.org
Wed Nov 25 00:18:45 CET 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4cf4387ce4 MADS: Nebular - Fix two memory leaks in dialogs


Commit: 4cf4387ce42a655a30d37b8a54e6eacf64d14158
    https://github.com/scummvm/scummvm/commit/4cf4387ce42a655a30d37b8a54e6eacf64d14158
Author: Strangerke (strangerke at scummvm.org)
Date: 2015-11-25T00:12:49+01:00

Commit Message:
MADS: Nebular - Fix two memory leaks in dialogs

Changed paths:
    engines/mads/nebular/dialogs_nebular.cpp



diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 960a2cc..a5c6a56 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;
 }
 
 /*------------------------------------------------------------------------*/






More information about the Scummvm-git-logs mailing list