summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2008-11-20 23:58:39 +0000
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-11-20 23:58:39 +0000
commit8dc9c875ffdfc27edef549b25d0b7baa0e6c7d7b (patch)
tree0d439d902530a150e930166f1d6f7c907c28ee35 /gio
parentdca2f339d5d25e10be7a38f58d2e2be7181dd195 (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/ChangeLog7
-rw-r--r--gio/gcontenttype.c1
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);