From 96b8743e950c1a0ef8580f4ba78452602779d007 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 2 Oct 2008 19:47:52 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20554698=20=E2=80=93=20mem=20leak=20in=20fi?= =?UTF-8?q?lechooser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=21570 --- ChangeLog | 6 ++++++ gtk/gtkfilechooserdefault.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3a75c83078..5421613aee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 1248e7b27f..05e2e535f8 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -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)