From 242b68ceddb217a42547d578898be841dca2f4a3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 27 Feb 2020 22:38:43 +0100 Subject: Remove warnings: cast between incompatible function types --- src/gs-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gs-manager.c') diff --git a/src/gs-manager.c b/src/gs-manager.c index 00ec982..cca90d8 100644 --- a/src/gs-manager.c +++ b/src/gs-manager.c @@ -387,8 +387,7 @@ free_themes (GSManager *manager) { if (manager->priv->themes) { - g_slist_foreach (manager->priv->themes, (GFunc)g_free, NULL); - g_slist_free (manager->priv->themes); + g_slist_free_full (manager->priv->themes, g_free); } } -- cgit v1.2.1