aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-06-22 15:28:00 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-06-25 18:33:59 +0800
commit80a2f896948ce6debf1b215127cce14b16786f8f (patch)
treea679ee5fb3040f16238f61a236c4a62c1cd972e5 /src
parent74ab4a3a9802006edd99e21e85e688593bce93be (diff)
downloadgsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar.gz
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar.bz2
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar.lz
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar.xz
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.tar.zst
gsoc2013-epiphany-80a2f896948ce6debf1b215127cce14b16786f8f.zip
ephy-navigation-history-action: Don't leak link-message
Diffstat (limited to 'src')
-rw-r--r--src/ephy-navigation-history-action.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c
index fe45590c8..f8892bf4b 100644
--- a/src/ephy-navigation-history-action.c
+++ b/src/ephy-navigation-history-action.c
@@ -224,8 +224,7 @@ item_enter_notify_event_cb (GtkWidget *widget,
char *text;
text = g_object_get_data (G_OBJECT (widget), "link-message");
- ephy_web_view_set_link_message (view, g_strdup (text));
- g_object_set_data (G_OBJECT (widget), "link-message", text);
+ ephy_web_view_set_link_message (view, text);
return FALSE;
}
@@ -309,7 +308,7 @@ new_history_menu_item (EphyWebView *view,
}
#endif
- g_object_set_data (G_OBJECT (item), "link-message", g_strdup (address));
+ g_object_set_data_full (G_OBJECT (item), "link-message", g_strdup (address), (GDestroyNotify) g_free);
g_signal_connect (item, "enter-notify-event",
G_CALLBACK (item_enter_notify_event_cb), view);