From 28a6895df5fa4a1a60c794ed5e85e31d764e85e7 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 28 Feb 2020 09:07:37 +0100 Subject: Remove warnings: cast between incompatible function types --- pluma/pluma-history-entry.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pluma/pluma-history-entry.c') diff --git a/pluma/pluma-history-entry.c b/pluma/pluma-history-entry.c index 13c853e4..3dacc123 100644 --- a/pluma/pluma-history-entry.c +++ b/pluma/pluma-history-entry.c @@ -226,8 +226,7 @@ pluma_history_entry_save_history (PlumaHistoryEntry *entry) entry->priv->history_id, settings_items); - g_slist_foreach (settings_items, (GFunc) g_free, NULL); - g_slist_free (settings_items); + g_slist_free_full (settings_items, g_free); } static gboolean @@ -373,8 +372,7 @@ pluma_history_entry_load_history (PlumaHistoryEntry *entry) -1); } - g_slist_foreach (settings_items, (GFunc) g_free, NULL); - g_slist_free (settings_items); + g_slist_free_full (settings_items, g_free); } void -- cgit v1.2.1