summaryrefslogtreecommitdiff
path: root/plugins/background
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/background')
-rw-r--r--plugins/background/msd-background-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c
index 686f3df..404e729 100644
--- a/plugins/background/msd-background-manager.c
+++ b/plugins/background/msd-background-manager.c
@@ -173,8 +173,7 @@ static void
free_scr_sizes (MsdBackgroundManager *manager)
{
if (manager->priv->scr_sizes != NULL) {
- g_list_foreach (manager->priv->scr_sizes, (GFunc)g_free, NULL);
- g_list_free (manager->priv->scr_sizes);
+ g_list_free_full (manager->priv->scr_sizes, g_free);
manager->priv->scr_sizes = NULL;
}
}