Problem: GTK4: crash menu id is null in gui_mch_destroy_menu()
Solution: Check that menu->id is not null before calling
vim_menu_remove() (Foxe Chen).
closes: #20724
Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
else if (menu->parent == NULL)
// Remove from menubar
vim_menu_bar_remove(VIM_MENU_BAR(gui.menubar), menu->id);
- else
+ // "menu->id" is NULL for window toolbar
+ else if (menu->id != NULL)
// Remove from parent menu
vim_menu_remove(VIM_MENU(menu->parent->submenu_id), menu->id);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 822,
/**/
821,
/**/