Commit cafad51f authored by Paolo Borelli's avatar Paolo Borelli

Action name string should be freed in all cases.

parent ecda583d
......@@ -3007,6 +3007,7 @@ sync_name (GeditTab *tab,
}
action = gtk_action_group_get_action (window->priv->documents_list_action_group,
action_name);
g_free (action_name);
/* action may be NULL if the idle has not populated the menu yet */
if (action != NULL)
......@@ -3022,7 +3023,6 @@ sync_name (GeditTab *tab,
g_object_set (action, "label", escaped_name, NULL);
g_object_set (action, "tooltip", tip, NULL);
g_free (action_name);
g_free (tab_name);
g_free (escaped_name);
g_free (tip);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment