From d34df9832f460c2bca79257aae4b5cfc77c959a1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 27 Feb 2020 20:49:54 +0100 Subject: Remove warnings: cast between incompatible function types --- src/eom-image.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/eom-image.c') diff --git a/src/eom-image.c b/src/eom-image.c index 01a869a..191acd4 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -199,8 +199,7 @@ eom_image_dispose (GObject *object) } if (priv->undo_stack) { - g_slist_foreach (priv->undo_stack, (GFunc) g_object_unref, NULL); - g_slist_free (priv->undo_stack); + g_slist_free_full (priv->undo_stack, g_object_unref); priv->undo_stack = NULL; } @@ -1649,8 +1648,7 @@ eom_image_reset_modifications (EomImage *image) priv = image->priv; - g_slist_foreach (priv->undo_stack, (GFunc) g_object_unref, NULL); - g_slist_free (priv->undo_stack); + g_slist_free_full (priv->undo_stack, g_object_unref); priv->undo_stack = NULL; if (priv->trans != NULL) { -- cgit v1.2.1