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/appearance/appearance-style.c | |
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/appearance/appearance-style.c')
-rw-r--r-- | capplets/appearance/appearance-style.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index 0b4773ad..05be0a13 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -322,8 +322,7 @@ check_color_schemes_enabled (GtkSettings *settings, enable_colors |= found; } - g_slist_foreach (symbolic_colors, (GFunc) g_free, NULL); - g_slist_free (symbolic_colors); + g_slist_free_full (symbolic_colors, g_free); gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "color_scheme_table"), enable_colors); gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "color_scheme_defaults_button"), enable_colors); |