From 6dba7df4b12852623a9b893301b22af028184793 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Jul 2008 06:13:41 +0000 Subject: [PATCH] Plug a leak svn path=/trunk/; revision=7191 --- gio/ChangeLog | 7 +++++++ gio/gunixvolumemonitor.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index d33e3c16..61e9f332 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,10 @@ +2008-07-16 Matthias Clasen + + Bug 540616 – mem leak in filechooser button + + * gunixvolumemonitor.c (get_mount_for_mount_path): Free + the mount entry. Reported by Chrisitan Persch + 2008-07-16 Matthias Clasen * gfile.c: Small documentation fixes. diff --git a/gio/gunixvolumemonitor.c b/gio/gunixvolumemonitor.c index d617f8d0..cbf5b834 100644 --- a/gio/gunixvolumemonitor.c +++ b/gio/gunixvolumemonitor.c @@ -154,6 +154,8 @@ get_mount_for_mount_path (const char *mount_path, /* TODO: Set mountable volume? */ mount = _g_unix_mount_new (NULL, mount_entry, NULL); + g_unix_mount_free (mount_entry); + return G_MOUNT (mount); } -- 2.34.1