summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/housekeeping/msd-disk-space.c6
-rw-r--r--plugins/housekeeping/msd-ldsm-dialog.c3
-rw-r--r--plugins/xrdb/msd-xrdb-manager.c6
3 files changed, 5 insertions, 10 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);
}
}
diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c
index 74ff606..18cbe0c 100644
--- a/plugins/housekeeping/msd-ldsm-dialog.c
+++ b/plugins/housekeeping/msd-ldsm-dialog.c
@@ -182,8 +182,7 @@ ignore_check_button_toggled_cb (GtkToggleButton *button,
g_ptr_array_free (array, FALSE);
}
- g_slist_foreach (ignore_paths, (GFunc) g_free, NULL);
- g_slist_free (ignore_paths);
+ g_slist_free_full (ignore_paths, g_free);
g_object_unref (settings);
}
diff --git a/plugins/xrdb/msd-xrdb-manager.c b/plugins/xrdb/msd-xrdb-manager.c
index 7daefb9..f440992 100644
--- a/plugins/xrdb/msd-xrdb-manager.c
+++ b/plugins/xrdb/msd-xrdb-manager.c
@@ -236,8 +236,7 @@ scan_for_files (MsdXrdbManager *manager,
if (local_error != NULL) {
g_propagate_error (error, local_error);
- g_slist_foreach (system_list, (GFunc)g_free, NULL);
- g_slist_free (system_list);
+ g_slist_free_full (system_list, g_free);
g_free (user_ad);
return NULL;
}
@@ -447,8 +446,7 @@ apply_settings (MsdXrdbManager *manager,
}
}
- g_slist_foreach (list, (GFunc)g_free, NULL);
- g_slist_free (list);
+ g_slist_free_full (list, g_free);
error = NULL;
append_xresource_file (USER_X_RESOURCES, string, &error);