From f2c0fa2ce9dabb02e4af250d1b4c02ddd201ebe9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Sep 2008 01:05:50 +0000 Subject: [PATCH] Don't unref the GFile we just put into the search_model. This adds a new 2008-09-07 Matthias Clasen * gtk/gtkfilechooserdefault.c (search_add_hit): Don't unref the GFile we just put into the search_model. This adds a new memory leak... svn path=/trunk/; revision=21315 --- ChangeLog | 6 ++++++ gtk/gtkfilechooserdefault.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 51f90aa187..147dc6ecc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-07 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (search_add_hit): Don't unref the + GFile we just put into the search_model. This adds a new memory + leak... + 2008-09-07 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Plug diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 6b72c4fd22..a4fcb750ec 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -8677,7 +8677,6 @@ search_add_hit (GtkFileChooserDefault *impl, SEARCH_MODEL_COL_CANCELLABLE, cancellable, -1); - g_object_unref (file); g_free (filename); }