Bug 561352 – Leak of icon description

2008-11-21  Cosimo Cecchi  <cosimoc@gnome.org>

	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
This commit is contained in:
Cosimo Cecchi 2008-11-20 23:58:39 +00:00 committed by Cosimo Cecchi
parent dca2f339d5
commit 8dc9c875ff
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-11-21 Cosimo Cecchi <cosimoc@gnome.org>
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 <mclasen@redhat.com>
* gfileattribute.c: Add G_FILE_ATTRIBUTE_PREVIEW_ICON to doc table.

View File

@ -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);