Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Bug 561352 – Leak of icon description
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cosimoc committed Nov 20, 2008
1 parent dca2f33 commit 8dc9c87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gio/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions gio/gcontenttype.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dc9c87

Please sign in to comment.