Bug 554698 – mem leak in filechooser

svn path=/trunk/; revision=21570
This commit is contained in:
Christian Persch 2008-10-02 19:47:52 +00:00
parent ab8c161601
commit 96b8743e95
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-10-02 Christian Persch
Bug 554698 mem leak in filechooser
* gtk/gtkfilechooserdefault.c: Plug a mem leak.
2008-10-02 Christian Persch
Bug 554696 invalid free function used

View File

@ -2186,6 +2186,7 @@ shortcuts_add_bookmarks (GtkFileChooserDefault *impl)
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)