diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-10-02 19:47:45 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-10-02 19:47:45 +0000 |
commit | ab8c16160186f5daa083cff5421b539243f2cf9b (patch) | |
tree | bcbf6b08f06be85fc42216b41f215cdef300633c /gtk/gtkfilesystemmodel.c | |
parent | 87d51e0ab46678e8e2dd93f3c185b5b0fe3a56cb (diff) | |
download | gtk+-ab8c16160186f5daa083cff5421b539243f2cf9b.tar.gz |
Bug 554696 – invalid free function used
svn path=/trunk/; revision=21569
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index aab21109db..de08a6374f 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1022,7 +1022,7 @@ ref_path_cb (GCancellable *cancellable, goto out; } - g_object_unref (info->files); + g_object_unref (info->files->data); info->files = g_slist_remove (info->files, info->files->data); if (g_slist_length (info->files) < 1) @@ -1070,7 +1070,8 @@ ref_path_cb (GCancellable *cancellable, out: if (info->node) unref_node_and_parents (info->model, info->node); - g_object_unref (info->files); + g_slist_foreach (info->files, (GFunc)g_object_unref, NULL); + g_slist_free (info->files); g_slist_foreach (info->cleanups, (GFunc)g_object_unref, NULL); g_slist_free (info->cleanups); g_object_unref (info->model); |