diff options
-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; } |