[brasero/gnome-2-30] Fix memory leak



commit 046491d16f4fb7fe91052775b17f537a96c985e9
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 10 15:19:59 2010 +0200

    Fix memory leak

 src/brasero-search-entry.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/brasero-search-entry.c b/src/brasero-search-entry.c
index 58fed04..8b7ed33 100644
--- a/src/brasero-search-entry.c
+++ b/src/brasero-search-entry.c
@@ -357,7 +357,10 @@ brasero_search_entry_finalize (GObject *object)
 		g_source_remove (cobj->priv->search_id);
 		cobj->priv->search_id = 0;
 	}
-
+	if (cobj->priv->keywords) {
+		g_free (cobj->priv->keywords);
+		cobj->priv->keywords = NULL;
+	}
 	g_free (cobj->priv);
 	cobj->priv = NULL;
 



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