[gnome-settings-daemon] housekeeping: plug a mem leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: plug a mem leak
- Date: Fri, 27 Jan 2012 10:41:44 +0000 (UTC)
commit 401954917b89359bbac1fdf60cd8fccc2c9e6da8
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jan 26 15:27:38 2012 -0500
housekeeping: plug a mem leak
Free the mount list, since it's transfer full.
https://bugzilla.gnome.org/show_bug.cgi?id=668776
plugins/housekeeping/gsd-disk-space.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index ad4c2bc..0fd733c 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -703,6 +703,8 @@ ldsm_check_all_mounts (gpointer data)
check_mounts = g_list_prepend (check_mounts, mount_info);
}
+ g_list_free (mounts);
+
number_of_mounts = g_list_length (check_mounts);
if (number_of_mounts > 1)
multiple_volumes = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]