summaryrefslogtreecommitdiff
path: root/plugins/xrdb
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-26 10:34:54 +0100
committerraveit65 <[email protected]>2020-12-04 21:54:28 +0100
commit6777c90acaf69fefc1f5ed5c83257b40ac081519 (patch)
tree19aa8f6f2c77d109c8d42cebfd7adb4e48d25b1d /plugins/xrdb
parenta6ae3a906357665ab8ffe4a73d1f9c6183c9048f (diff)
downloadmate-settings-daemon-6777c90acaf69fefc1f5ed5c83257b40ac081519.tar.bz2
mate-settings-daemon-6777c90acaf69fefc1f5ed5c83257b40ac081519.tar.xz
Use g_slist_free_full
Diffstat (limited to 'plugins/xrdb')
-rw-r--r--plugins/xrdb/msd-xrdb-manager.c6
1 files changed, 2 insertions, 4 deletions
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);