aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-16 17:44:53 +0100
committerEugene Sandulenko2019-12-16 17:44:53 +0100
commit462998e6d477e96f77868aacc1ef74fe72687981 (patch)
treedbfa21985e3dd85c1b3b3e30dcea107065ca78c8 /graphics
parentd62a589059bfd613e307cd771f073abd2194149e (diff)
downloadscummvm-rg350-462998e6d477e96f77868aacc1ef74fe72687981.tar.gz
scummvm-rg350-462998e6d477e96f77868aacc1ef74fe72687981.tar.bz2
scummvm-rg350-462998e6d477e96f77868aacc1ef74fe72687981.zip
GRAPHICS: MACGUI: Delete menu on redefinition
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/macwindowmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 5d59e2d57a..570c526565 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -228,6 +228,8 @@ void MacWindowManager::addWindowInitialized(MacWindow *macwindow) {
}
MacMenu *MacWindowManager::addMenu() {
+ delete _menu;
+
_menu = new MacMenu(getNextId(), _screen->getBounds(), this);
_windows[_menu->getId()] = _menu;