[gtk+/gtk-2-24] GtkFileChooser: avoid a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] GtkFileChooser: avoid a memory leak
- Date: Sun, 1 Dec 2013 22:15:23 +0000 (UTC)
commit 4f47aa6ef5fe4796635e2c211831c78e76cb2240
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 1 17:13:01 2013 -0500
GtkFileChooser: avoid a memory leak
The directory enumeration code was leaking references to
GtkFolder objects.
https://bugzilla.gnome.org/show_bug.cgi?id=705367
gtk/gtkfilesystem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index 40a2aae..d0ec4b4 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -863,6 +863,9 @@ enumerate_children_callback (GObject *source_object,
free_async_data (async_data);
+ if (folder)
+ g_object_unref (folder);
+
if (error)
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]