From 8dc9c875ffdfc27edef549b25d0b7baa0e6c7d7b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 20 Nov 2008 23:58:39 +0000 Subject: [PATCH] =?utf8?q?Bug=20561352=20=E2=80=93=20Leak=20of=20icon=20de?= =?utf8?q?scription?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-11-21 Cosimo Cecchi Bug 561352 – Leak of icon description * gcontenttype.c: (g_content_type_get_icon): don't leak the XDG mimetype generic icon string. svn path=/trunk/; revision=7660 --- gio/ChangeLog | 7 +++++++ gio/gcontenttype.c | 1 + 2 files changed, 8 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index 4a80906..cd0250c 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,10 @@ +2008-11-21 Cosimo Cecchi + + Bug 561352 – Leak of icon description + + * gcontenttype.c: (g_content_type_get_icon): don't leak the XDG mimetype + generic icon string. + 2008-11-14 Matthias Clasen * gfileattribute.c: Add G_FILE_ATTRIBUTE_PREVIEW_ICON to doc table. diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index f5e5599..90ce251 100644 --- a/gio/gcontenttype.c +++ b/gio/gcontenttype.c @@ -791,6 +791,7 @@ g_content_type_get_icon (const char *type) themed_icon = g_themed_icon_new_from_names (icon_names, n); g_free (xdg_mimetype_icon); + g_free (xdg_mimetype_generic_icon); g_free (mimetype_icon); g_free (legacy_mimetype_icon); g_free (generic_mimetype_icon); -- 2.7.4