changeset 1973:1bd70305b227

[gaim-migrate @ 1983] fixes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 07 Jun 2001 21:50:03 +0000
parents 1053abe6e9f4
children db1b719c66cf
files src/oscar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Thu Jun 07 07:38:29 2001 +0000
+++ b/src/oscar.c	Thu Jun 07 21:50:03 2001 +0000
@@ -532,7 +532,7 @@
 			gdk_pixbuf_unref(n->unanim);
 		if (n->timer)
 			gtk_timeout_remove(n->timer);
-		if (n->cnv)
+		if (n->cnv && n->pix)
 			gtk_container_remove(GTK_CONTAINER(n->cnv->bbox), n->pix);
 		g_free(n->user);
 		if (n->data)
@@ -1779,7 +1779,6 @@
 				gtk_timeout_remove(ir->timer);
 			ir->timer = 0;
 
-			ir->cnv = c;
 			ir->length = args->info.icon.length;
 
 			if (!ir->length)
@@ -1810,6 +1809,7 @@
 				gdk_pixbuf_render_pixmap_and_mask(ir->unanim, &pm, &bm, 0);
 			}
 
+			ir->cnv = c;
 			ir->pix = gtk_pixmap_new(pm, bm);
 			gtk_box_pack_start(GTK_BOX(c->bbox), ir->pix, FALSE, FALSE, 5);
 			if (ir->anim && (gdk_pixbuf_animation_get_num_frames(ir->anim) > 1))