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
Notes: sideshowbarker 2024-07-19 04:49:14 +09:00

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