Merge Richard Cohen's 'fix-gnc-gui-debug-crash' into master.

This commit is contained in:
John Ralls 2023-03-16 14:01:53 -07:00
commit 144b6ae090

View File

@ -1937,14 +1937,14 @@ gnc_main_window_update_menu_item (GncMainWindow *window)
g_strfreev (strings);
data.visible = TRUE;
// data.action_name = g_strdup_printf ("Window%" G_GSIZE_FORMAT "Action", index);
data.action_name = g_strdup_printf ("Window%" G_GSIZE_FORMAT "Action", index);
data.index = index;
g_list_foreach (active_windows,
(GFunc)gnc_main_window_update_one_menu_action,
&data);
// g_free (data.action_name);
g_free (data.action_name);
g_free (data.label);
LEAVE(" ");