summaryrefslogtreecommitdiff
path: root/plugins/housekeeping/msd-disk-space.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/housekeeping/msd-disk-space.c')
-rw-r--r--plugins/housekeeping/msd-disk-space.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c
index 22b196c..f37aab5 100644
--- a/plugins/housekeeping/msd-disk-space.c
+++ b/plugins/housekeeping/msd-disk-space.c
@@ -612,8 +612,7 @@ msd_ldsm_get_config (void)
SETTINGS_MIN_NOTIFY_PERIOD);
if (ignore_paths != NULL) {
- g_slist_foreach (ignore_paths, (GFunc) g_free, NULL);
- g_slist_free (ignore_paths);
+ g_slist_free_full (ignore_paths, g_free);
ignore_paths = NULL;
}
@@ -696,8 +695,7 @@ msd_ldsm_clean (void)
}
if (ignore_paths) {
- g_slist_foreach (ignore_paths, (GFunc) g_free, NULL);
- g_slist_free (ignore_paths);
+ g_slist_free_full (ignore_paths, g_free);
}
}