[gtk/gbsneto/array-clear-func] icontheme: Don't free array element



commit 6fc706f9834911a40c718a580cfe52ea8f208239
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed May 6 18:06:09 2020 -0300

    icontheme: Don't free array element
    
    When setting a clear function on a GArray, unlike
    most other places, this free func is expected to
    *not* free the array element itself -- only its
    contents.
    
    Don't free the array element.
    
    Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2717

 gtk/gtkicontheme.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 4a4ecfb1ad..76d46c4948 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1246,7 +1246,6 @@ free_dir_mtime (IconThemeDirMtime *dir_mtime)
     gtk_icon_cache_unref (dir_mtime->cache);
 
   g_free (dir_mtime->dir);
-  g_slice_free (IconThemeDirMtime, dir_mtime);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]