Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak in icon_info_ensure_scale_and_pixbuf
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
- Loading branch information
1 parent
8421b67
commit b5a5224
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters