[brasero/gnome-2-30] Fix memleak



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

    Fix memleak

 src/brasero-mime-filter.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/brasero-mime-filter.c b/src/brasero-mime-filter.c
index e7208bd..af1c424 100644
--- a/src/brasero-mime-filter.c
+++ b/src/brasero-mime-filter.c
@@ -219,8 +219,8 @@ brasero_mime_filter_add_mime (BraseroMimeFilter *filter,
 	if (!item) {
 		GIcon *icon;
 		GtkTreeIter row;
+		gchar *description;
 		GtkTreeModel *model;
-		const gchar *description;
 
 		description = g_content_type_get_description (mime);
 		icon = g_content_type_get_icon (mime);
@@ -247,6 +247,7 @@ brasero_mime_filter_add_mime (BraseroMimeFilter *filter,
 				    BRASERO_MIME_FILTER_FILTER_COL, item,
 				    -1);
 		g_object_unref (icon);
+		g_free (description);
 
 		/* we check that the first entry at least is visible */
 		if (gtk_combo_box_get_active (GTK_COMBO_BOX (filter->combo)) == -1



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