Skip to content

Commit

Permalink
Fix memory leak in icon_info_ensure_scale_and_pixbuf
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
  • Loading branch information
freemangordon committed May 23, 2021
1 parent 8421b67 commit b5a5224
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions debian/patches/do_not_leak_mime_type.patch
@@ -0,0 +1,13 @@
Index: gtk/gtk/gtkicontheme.c
===================================================================
--- gtk.orig/gtk/gtkicontheme.c
+++ gtk/gtk/gtkicontheme.c
@@ -2927,6 +2927,8 @@ icon_info_ensure_scale_and_pixbuf (GtkIc

if (mime_type && strcmp (mime_type, "image/svg+xml") == 0)
is_svg = TRUE;
+
+ g_free (mime_type);
}

g_object_unref (file_info);
1 change: 1 addition & 0 deletions debian/patches/series
Expand Up @@ -42,3 +42,4 @@ hildonize-gtk-rbtree.diff
hildonize-gtk-treeview.diff
hildonize-gtk-iconview.diff
hildonize-gtk-immulticontext.diff
do_not_leak_mime_type.patch

0 comments on commit b5a5224

Please sign in to comment.