diff options
author | rbuj <[email protected]> | 2020-11-26 10:59:05 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-04 22:00:43 +0100 |
commit | ff32e170961fa1999f802c844ead5d962dfec505 (patch) | |
tree | 0e4d8971ecdb745960bbbe676bce1f3ae6efde94 /capplets/network | |
parent | 6bebceb3dbbd9e9fc2b4661499785157cebbc8a4 (diff) | |
download | mate-control-center-ff32e170961fa1999f802c844ead5d962dfec505.tar.bz2 mate-control-center-ff32e170961fa1999f802c844ead5d962dfec505.tar.xz |
Use g_slist_free_full
Diffstat (limited to 'capplets/network')
-rw-r--r-- | capplets/network/mate-network-properties.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c index a4d546e9..5cda10f2 100644 --- a/capplets/network/mate-network-properties.c +++ b/capplets/network/mate-network-properties.c @@ -231,8 +231,7 @@ cb_dialog_response (GtkDialog *dialog, gint response_id) else if (response_id == GTK_RESPONSE_CLOSE || response_id == GTK_RESPONSE_DELETE_EVENT) { if (ignore_hosts) { - g_slist_foreach (ignore_hosts, (GFunc) g_free, NULL); - g_slist_free (ignore_hosts); + g_slist_free_full (ignore_hosts, g_free); } gtk_main_quit (); @@ -368,8 +367,7 @@ connect_sensitivity_signals (GtkBuilder *builder, GSList *mode_group) static void cb_ignore_hosts_gsettings_changed (GSettings *settings, gchar *key, gpointer user_data) { - g_slist_foreach (ignore_hosts, (GFunc) g_free, NULL); - g_slist_free (ignore_hosts); + g_slist_free_full (ignore_hosts, g_free); read_ignore_hosts_from_gsettings (); |