[gnome-settings-daemon/gnome-3-4] housekeeping: fix GList leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-4] housekeeping: fix GList leak
- Date: Tue, 24 Apr 2012 13:56:32 +0000 (UTC)
commit 214a832820f6448f07d438f6686267eaf8301dd1
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 0fd733c..7cc0273 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -763,7 +763,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]