[epiphany] don't free title string twice



commit aea158e3a9bb3a41d056ce57dea12ea8b2d555f6
Author: Benjamin Otte <otte gnome org>
Date:   Wed Jul 8 14:01:34 2009 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index e66c990..5fdd4f0 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]