From 916866e835d18b79def26e533104205e931b644c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 26 Oct 2008 20:44:38 +0000 Subject: ephy-home-action: plug leak. Use gtk_action_get_name instead of g_object_get to get the action name so the string isn't duped. svn path=/trunk/; revision=8599 --- src/ephy-home-action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ephy-home-action.c') diff --git a/src/ephy-home-action.c b/src/ephy-home-action.c index ed1a15706..8d3130142 100644 --- a/src/ephy-home-action.c +++ b/src/ephy-home-action.c @@ -233,11 +233,11 @@ static void connect_proxy (GtkAction *action, GtkWidget *proxy) { - gchar *action_name; + const gchar *action_name; GTK_ACTION_CLASS (ephy_home_action_parent_class)->connect_proxy (action, proxy); - g_object_get (action, "name", &action_name, NULL); + action_name = gtk_action_get_name (action); if (GTK_IS_TOOL_ITEM (proxy) && (strcmp (action_name, "GoHome") != 0)) { -- cgit v1.2.3