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
This commit is contained in:
Yotam Barnoy 2010-10-23 21:30:39 +00:00
parent ae6aa8a6b3
commit deb461d200

View File

@ -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;
}