From 462998e6d477e96f77868aacc1ef74fe72687981 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 16 Dec 2019 17:44:53 +0100 Subject: GRAPHICS: MACGUI: Delete menu on redefinition --- graphics/macgui/macwindowmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics') 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; -- cgit v1.2.3