diff options
author | Benjamin Otte <otte@gnome.org> | 2009-07-08 20:01:34 +0800 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-07-08 20:03:02 +0800 |
commit | aea158e3a9bb3a41d056ce57dea12ea8b2d555f6 (patch) | |
tree | ef03968698af31840b832bd06a6a2506620ba735 | |
parent | 8d0cbe9065b8568a2c077ded8d153a597fae6859 (diff) | |
download | gsoc2013-epiphany-aea158e3a9bb3a41d056ce57dea12ea8b2d555f6.tar.gz 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().
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 2 |
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); } |