mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Fix menu leak when default action changed
This commit is contained in:
parent
50903fd88c
commit
8ae37bccf1
Notes:
sideshowbarker
2024-07-19 04:49:14 +09:00
Author: https://github.com/tomuta
Commit: 8ae37bccf1
Pull-request: https://github.com/SerenityOS/serenity/pull/2795
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