gtk+ r21575 - in branches/gtk-2-14: . gtk



Author: chpe
Date: Thu Oct  2 19:55:40 2008
New Revision: 21575
URL: http://svn.gnome.org/viewvc/gtk+?rev=21575&view=rev

Log:
Bug 554696 â invalid free function used

Modified:
   branches/gtk-2-14/ChangeLog
   branches/gtk-2-14/gtk/gtkfilesystemmodel.c

Modified: branches/gtk-2-14/gtk/gtkfilesystemmodel.c
==============================================================================
--- branches/gtk-2-14/gtk/gtkfilesystemmodel.c	(original)
+++ branches/gtk-2-14/gtk/gtkfilesystemmodel.c	Thu Oct  2 19:55:40 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]