gtk+ r21569 - in trunk: . gtk
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21569 - in trunk: . gtk
- Date: Thu, 2 Oct 2008 19:47:45 +0000 (UTC)
Author: chpe
Date: Thu Oct 2 19:47:45 2008
New Revision: 21569
URL: http://svn.gnome.org/viewvc/gtk+?rev=21569&view=rev
Log:
Bug 554696 â invalid free function used
Modified:
trunk/ChangeLog
trunk/gtk/gtkfilesystemmodel.c
Modified: trunk/gtk/gtkfilesystemmodel.c
==============================================================================
--- trunk/gtk/gtkfilesystemmodel.c (original)
+++ trunk/gtk/gtkfilesystemmodel.c Thu Oct 2 19:47:45 2008
@@ -1022,7 +1022,7 @@
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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]