[gvfs] Fix a leak in gvfsfusedaemon.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] Fix a leak in gvfsfusedaemon.c
- Date: Fri, 11 Sep 2009 05:13:40 +0000 (UTC)
commit 7fb9cb60c85c34b46e563e0ede85060c1f68c284
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 11 00:34:12 2009 -0400
Fix a leak in gvfsfusedaemon.c
This ref leak was reported by clang. Bug 594828.
client/gvfsfusedaemon.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index 7481d24..68e4ca0 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -2175,15 +2175,13 @@ mount_tracker_unmounted_cb (GVolumeMonitor *volume_monitor,
GList *l;
root = g_mount_get_root (mount);
-
+
mount_list_lock ();
-
- root = g_mount_get_root (mount);
for (l = mount_list; l != NULL; l = l->next)
{
MountRecord *mount_record = l->data;
-
+
if (g_file_equal (root, mount_record->root))
{
mount_list = g_list_delete_link (mount_list, l);
@@ -2191,7 +2189,7 @@ mount_tracker_unmounted_cb (GVolumeMonitor *volume_monitor,
break;
}
}
-
+
mount_list_unlock ();
g_object_unref (root);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]