[brasero] Fix memleak
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix memleak
- Date: Mon, 10 May 2010 20:22:54 +0000 (UTC)
commit 6c19c2a47a11692e705a7b682e589f471d62d2e1
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]