From aea158e3a9bb3a41d056ce57dea12ea8b2d555f6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 8 Jul 2009 14:01:34 +0200 Subject: don't free title string twice When the url is NULL, the title was freed twice - once after giving to the GValue via ctext, once with g_free(). --- lib/widgets/ephy-location-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index e66c990d3..5fdd4f0bb 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -1050,6 +1050,7 @@ textcell_data_func (GtkCellLayout *cell_layout, att->start_index = strlen (title)+1; pango_attr_list_insert (list, att); + g_free (title); } else { @@ -1095,7 +1096,6 @@ textcell_data_func (GtkCellLayout *cell_layout, pango_attr_list_unref (list); - g_free (title); g_free (url); } -- cgit