diff options
author | Yotam Barnoy | 2010-10-23 21:30:39 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-10-23 21:30:39 +0000 |
commit | deb461d2003e8183402530cd27ae56c289f50050 (patch) | |
tree | 2a137f1ca7c3e96a540e89f10e7dde83645c83da | |
parent | ae6aa8a6b354b5050406ba87626535ffef0be541 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |