From: Cosimo Cecchi Date: Thu, 20 Nov 2008 23:58:39 +0000 (+0000) Subject: Bug 561352 – Leak of icon description X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=8dc9c875ffdfc27edef549b25d0b7baa0e6c7d7b;p=dana%2Fcg-glib.git Bug 561352 – Leak of icon description 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 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 4a809061..cd0250cc 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 f5e55996..90ce2515 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);