diff options
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 729f632852..f4191f9a77 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1857,7 +1857,7 @@ free_unthemed_icon (UnthemedIcon *unthemed_icon) { g_free (unthemed_icon->svg_filename); g_free (unthemed_icon->no_svg_filename); - g_slice_free (UnthemedIcon, unthemed_icon); + g_free (unthemed_icon); } static inline void @@ -1932,7 +1932,7 @@ add_unthemed_icon (GtkIconTheme *self, } else { - unthemed_icon = g_slice_new0 (UnthemedIcon); + unthemed_icon = g_new0 (UnthemedIcon, 1); unthemed_icon->is_resource = is_resource; |