diff options
Diffstat (limited to 'src/gs-prefs.c')
-rw-r--r-- | src/gs-prefs.c | 6 |
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); |