Commit 018c353d authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent f5ffc36e
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)
Tue Aug 31 23:40:29 2004 Matthias Clasen <maclas@gmx.de>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
......
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)
Tue Aug 31 23:40:29 2004 Matthias Clasen <maclas@gmx.de>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
......
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)
Tue Aug 31 23:40:29 2004 Matthias Clasen <maclas@gmx.de>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
......
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)
Tue Aug 31 23:40:29 2004 Matthias Clasen <maclas@gmx.de>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment