mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix crash with --log gnc.gui=debug
gnc_main_window_update_one_menu_action() will try to print data.action_name
This commit is contained in:
parent
1f0a69a804
commit
1c496c4bd5
@ -1912,14 +1912,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(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user