diff options
author | rbuj <[email protected]> | 2020-02-27 20:49:54 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-10 20:29:47 +0100 |
commit | d34df9832f460c2bca79257aae4b5cfc77c959a1 (patch) | |
tree | 74e7a06c4b018f9045ebd97d7252fa71f87066ab /src/eom-image.c | |
parent | 0c8d17a76050af39b22f26b33f7b47de949ef379 (diff) | |
download | eom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.bz2 eom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.xz |
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/eom-image.c')
-rw-r--r-- | src/eom-image.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) { |