aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-07-08 20:01:34 +0800
committerBenjamin Otte <otte@gnome.org>2009-07-08 20:03:02 +0800
commitaea158e3a9bb3a41d056ce57dea12ea8b2d555f6 (patch)
treeef03968698af31840b832bd06a6a2506620ba735 /lib
parent8d0cbe9065b8568a2c077ded8d153a597fae6859 (diff)
downloadgsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.gz
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.bz2
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.lz
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.xz
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.zst
gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.zip
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().
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c2
1 files changed, 1 insertions, 1 deletions
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);
}