diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2008-11-20 23:58:39 +0000 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-11-20 23:58:39 +0000 |
commit | 8dc9c875ffdfc27edef549b25d0b7baa0e6c7d7b (patch) | |
tree | 0d439d902530a150e930166f1d6f7c907c28ee35 /gio | |
parent | dca2f339d5d25e10be7a38f58d2e2be7181dd195 (diff) |
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
Diffstat (limited to 'gio')
-rw-r--r-- | gio/ChangeLog | 7 | ||||
-rw-r--r-- | gio/gcontenttype.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gio/ChangeLog b/gio/ChangeLog index 4a8090618..cd0250ccc 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -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. diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index f5e559965..90ce25152 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); |