summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-26 10:16:24 +0100
committerraveit65 <[email protected]>2020-12-04 21:51:38 +0100
commita6ae3a906357665ab8ffe4a73d1f9c6183c9048f (patch)
tree187215a0c4090c5273ee23473d368aa36c1866d4 /plugins
parentc229098da9733ba61d4991974b7f453164196dd4 (diff)
downloadmate-settings-daemon-a6ae3a906357665ab8ffe4a73d1f9c6183c9048f.tar.bz2
mate-settings-daemon-a6ae3a906357665ab8ffe4a73d1f9c6183c9048f.tar.xz
msd-background-manager: use g_list_free_full
Diffstat (limited to 'plugins')
-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;
}
}