aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Barnoy2010-10-23 21:30:39 +0000
committerYotam Barnoy2010-10-23 21:30:39 +0000
commitdeb461d2003e8183402530cd27ae56c289f50050 (patch)
tree2a137f1ca7c3e96a540e89f10e7dde83645c83da
parentae6aa8a6b354b5050406ba87626535ffef0be541 (diff)
downloadscummvm-rg350-deb461d2003e8183402530cd27ae56c289f50050.tar.gz
scummvm-rg350-deb461d2003e8183402530cd27ae56c289f50050.tar.bz2
scummvm-rg350-deb461d2003e8183402530cd27ae56c289f50050.zip
GUI: added close() call to Dialog::runModal()
This should prevent a small leak in the GuiManager when adding the dialog to the stack. Check for any regressions. svn-id: r53747
-rw-r--r--gui/dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index e20b181c83..e25cfa1397 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -76,6 +76,8 @@ int Dialog::runModal() {
// Start processing events
g_gui.runLoop();
+ close(); // to prevent resource leak in GUI manager
+
// Return the result code
return _result;
}