From dec0ca0ec685adc24383e985f701d22dae8312a2 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 1 Jun 2021 22:46:28 +0800 Subject: [PATCH] [gnc-plugin] g_value_unset, and don't use GValue --- gnucash/gnome-utils/gnc-plugin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gnucash/gnome-utils/gnc-plugin.c b/gnucash/gnome-utils/gnc-plugin.c index 8704053968..6173cbf166 100644 --- a/gnucash/gnome-utils/gnc-plugin.c +++ b/gnucash/gnome-utils/gnc-plugin.c @@ -235,11 +235,8 @@ gnc_plugin_init_short_names (GtkActionGroup *action_group, action_toolbar_labels *toolbar_labels) { GtkAction *action; - GValue value = { 0, }; gint i; - g_value_init (&value, G_TYPE_STRING); - for (i = 0; toolbar_labels[i].action_name; i++) { /* Add a couple of short labels for the toolbar */ @@ -306,6 +303,7 @@ gnc_plugin_update_actions (GtkActionGroup *action_group, g_list_length(gtk_action_group_list_actions(action_group))); } } + g_value_unset (&gvalue); }