[gnome-settings-daemon] housekeeping: fix GList leak



commit 4db25870e0f15259de319d0906f8a1dc2cab849a
Author: Pavel Vasin <rat4vier gmail com>
Date:   Tue Apr 24 12:04:00 2012 +0400

    housekeeping: fix GList leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674703

 plugins/housekeeping/gsd-disk-space.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index ee7e2fd..39e7ac6 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -682,7 +682,7 @@ ldsm_mounts_changed (GObject  *monitor,
         mounts = g_unix_mounts_get (time_read);
         g_hash_table_foreach_remove (ldsm_notified_hash,
                                      ldsm_is_hash_item_not_in_mounts, mounts);
-        g_list_foreach (mounts, (GFunc) g_unix_mount_free, NULL);
+        g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free);
 
         /* check the status now, for the new mounts */
         ldsm_check_all_mounts (NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]