summaryrefslogtreecommitdiff
path: root/src/eom-image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-image.c')
-rw-r--r--src/eom-image.c6
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) {