[gedit/gnome-3-2] Action name string should be freed in all cases.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-2] Action name string should be freed in all cases.
- Date: Fri, 2 Dec 2011 20:51:19 +0000 (UTC)
commit cafad51f0dc3e27eeff116b491126508dae31663
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Nov 26 16:49:20 2011 +0100
Action name string should be freed in all cases.
gedit/gedit-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index fcf25ea..3d0aad2 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]