mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:04:59 +00:00
LibGUI: Fix menu leak when default action changed
This commit is contained in:
parent
50903fd88c
commit
8ae37bccf1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue