summaryrefslogtreecommitdiff
path: root/gtk/gtkimage.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-09-01 04:57:02 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-09-01 04:57:02 +0000
commit018c353d0ba15fb01880d09725295adddd56cbdd (patch)
tree9f780a9fd2531405aa7c03b37dd8b94672a37401 /gtk/gtkimage.c
parentf5ffc36e35dfcf21b8ba656c63d0c98895849a29 (diff)
downloadgtk+-018c353d0ba15fb01880d09725295adddd56cbdd.tar.gz
Don't leak the iter of a running animation. (#151542)
Wed Sep 1 00:55:56 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkimage.c (gtk_image_clear): Don't leak the iter of a running animation. (#151542)
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r--gtk/gtkimage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index fc35c5c70e..8d8b54ad3a 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1610,13 +1610,10 @@ gtk_image_clear (GtkImage *image)
break;
case GTK_IMAGE_ANIMATION:
- if (image->data.anim.frame_timeout)
- g_source_remove (image->data.anim.frame_timeout);
+ gtk_image_reset_anim_iter (image);
if (image->data.anim.anim)
g_object_unref (image->data.anim.anim);
-
- image->data.anim.frame_timeout = 0;
image->data.anim.anim = NULL;
g_object_notify (G_OBJECT (image), "pixbuf_animation");