LibGUI: Fix menu leak when default action changed

This commit is contained in:
Tom
2020-07-13 19:14:30 -06:00
committed by Andreas Kling
parent 50903fd88c
commit 8ae37bccf1

View File

@@ -104,6 +104,7 @@ void Menu::dismiss()
int Menu::realize_menu(RefPtr<Action> default_action)
{
unrealize_menu();
m_menu_id = WindowServerConnection::the().send_sync<Messages::WindowServer::CreateMenu>(m_name)->menu_id();
#ifdef MENU_DEBUG