summaryrefslogtreecommitdiff
path: root/src/gs-prefs.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-27 22:38:43 +0100
committerraveit65 <[email protected]>2020-03-13 16:43:30 +0100
commit242b68ceddb217a42547d578898be841dca2f4a3 (patch)
tree6e661efc8f713cf00400e7526b4c20c3659c2c81 /src/gs-prefs.c
parentec8db2297fc1d435d26de2006b429b1e6ffdc8a3 (diff)
downloadmate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.bz2
mate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/gs-prefs.c')
-rw-r--r--src/gs-prefs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 5a0746b..3c3c074 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -202,8 +202,7 @@ _gs_prefs_set_themes (GSPrefs *prefs,
guint i;
if (prefs->themes)
{
- g_slist_foreach (prefs->themes, (GFunc)g_free, NULL);
- g_slist_free (prefs->themes);
+ g_slist_free_full (prefs->themes, g_free);
}
/* take ownership of the list */
@@ -600,8 +599,7 @@ gs_prefs_finalize (GObject *object)
if (prefs->themes)
{
- g_slist_foreach (prefs->themes, (GFunc)g_free, NULL);
- g_slist_free (prefs->themes);
+ g_slist_free_full (prefs->themes, g_free);
}
g_free (prefs->logout_command);