mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
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:
parent
ae6aa8a6b3
commit
deb461d200
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user