gtk+ r21570 - in trunk: . gtk



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

Log:
Bug 554698 â mem leak in filechooser

Modified:
   trunk/ChangeLog
   trunk/gtk/gtkfilechooserdefault.c

Modified: trunk/gtk/gtkfilechooserdefault.c
==============================================================================
--- trunk/gtk/gtkfilechooserdefault.c	(original)
+++ trunk/gtk/gtkfilechooserdefault.c	Thu Oct  2 19:47:52 2008
@@ -2186,6 +2186,7 @@
 
   bookmarks = _gtk_file_system_list_bookmarks (impl->file_system);
   shortcuts_append_bookmarks (impl, bookmarks);
+  g_slist_foreach (bookmarks, (GFunc) g_object_unref, NULL);
   g_slist_free (bookmarks);
 
   if (impl->num_bookmarks == 0)



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