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)
This commit is contained in:
Matthias Clasen 2004-09-01 04:57:02 +00:00 committed by Matthias Clasen
parent f5ffc36e35
commit 018c353d0b
5 changed files with 21 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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");