From 6eea6bc057d771ccdc87390da315e9ef75878745 Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 21 Dec 2014 14:41:25 +0300 Subject: [PATCH] fix one more memleak --- pluma/pluma-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index 780879b..a040546 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -2757,6 +2757,7 @@ sync_name (PlumaTab *tab, action_name = g_strdup_printf ("Tab_%d", n); action = gtk_action_group_get_action (window->priv->documents_list_action_group, action_name); + g_free (action_name); g_return_if_fail (action != NULL); tab_name = _pluma_tab_get_name (tab); @@ -2766,7 +2767,6 @@ sync_name (PlumaTab *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);