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:
committed by
Matthias Clasen
parent
d03aad17d6
commit
1108ffcb7f
@@ -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:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
|
||||
@@ -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:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
|
||||
@@ -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:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
|
||||
@@ -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:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
|
||||
@@ -1607,13 +1607,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");
|
||||
|
||||
Reference in New Issue
Block a user