forked from AuroraMiddleware/gtk
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:
parent
f5ffc36e35
commit
018c353d0b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user