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
This commit is contained in:
Georges Basile Stavracas Neto 2020-05-06 18:06:09 -03:00
parent 68011e99ac
commit 6fc706f983

View File

@ -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