Bug 561352 – Leak of icon description
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 20 Nov 2008 23:58:39 +0000 (23:58 +0000)
committerCosimo Cecchi <cosimoc@src.gnome.org>
Thu, 20 Nov 2008 23:58:39 +0000 (23:58 +0000)
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

gio/ChangeLog
gio/gcontenttype.c

index 4a809061847ca7b05a4cf9a6309b268650473bb3..cd0250ccce5dc9020997284bf307ea74883a9be5 100644 (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.
index f5e55996554678173ea4d35dc0cc6bd10741b440..90ce2515273159286c45c1e4546b8a1244855d0a 100644 (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);