[brasero/gnome-2-30] Fix memleak
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero/gnome-2-30] Fix memleak
- Date: Mon, 10 May 2010 20:19:53 +0000 (UTC)
commit c9a31a98fc7a7255ffbe192692b6b903822779c0
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]