Problem: GTK4: memory leak in free_menu()
Solution: Free the label (Foxe Chen)
closes: #20343
Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
// Also may rebuild a tearoff'ed menu
if (gui.in_use)
gui_mch_destroy_menu(menu);
+# ifdef USE_GTK4
+ // GTK4 uses "menu->label" for action name
+ vim_free((char_u *)menu->label);
+# endif
#endif
// Don't change *menup until after calling gui_mch_destroy_menu(). The
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 554,
/**/
553,
/**/