[brasero] Fix memleak



commit bd312c11146a30587bd79c053727860d87085f44
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 10 18:18:13 2010 +0200

    Fix memleak

 src/brasero-search.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/brasero-search.c b/src/brasero-search.c
index 5579140..1ad3d68 100644
--- a/src/brasero-search.c
+++ b/src/brasero-search.c
@@ -174,7 +174,7 @@ brasero_search_column_name_cb (GtkTreeViewColumn *tree_column,
 	g_free (name);
 }
 
-static const gchar*
+static gchar*
 brasero_search_description_from_hit (BraseroSearch *search,
 				     gpointer hit)
 {
@@ -194,7 +194,7 @@ brasero_search_column_description_cb (GtkTreeViewColumn *tree_column,
                                       GtkTreeIter *iter,
                                       gpointer data)
 {
-	const gchar *description;
+	gchar *description;
 	gpointer hit = NULL;
 
 	gtk_tree_model_get (model, iter,
@@ -205,6 +205,7 @@ brasero_search_column_description_cb (GtkTreeViewColumn *tree_column,
 	g_object_set (G_OBJECT (cell),
 		      "text", description,
 		      NULL);
+	g_free (description);
 }
 
 static void



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