changeset 1933:e9f926eaf0c9

[gaim-migrate @ 1943] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 01 Jun 2001 17:53:37 +0000
parents be30d74bd3a8
children e875b1cb2470
files src/oscar.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Fri Jun 01 16:54:24 2001 +0000
+++ b/src/oscar.c	Fri Jun 01 17:53:37 2001 +0000
@@ -1815,7 +1815,8 @@
 							gdk_pixbuf_animation_get_height(ir->anim));
 			gtk_widget_show(ir->pix);
 			gdk_pixmap_unref(pm);
-			gdk_bitmap_unref(bm);
+			if (bm)
+				gdk_bitmap_unref(bm);
 
 			gdk_pixbuf_loader_close(load);
 
@@ -3238,8 +3239,13 @@
 	ir->pix = NULL;
 	ir->cnv = NULL;
 	
-	gdk_pixbuf_animation_unref(ir->anim);
-	ir->anim = NULL;
+	if (ir->anim) {
+		gdk_pixbuf_animation_unref(ir->anim);
+		ir->anim = NULL;
+	} else if (ir->unanim) {
+		gdk_pixbuf_unref(ir->unanim);
+		ir->unanim = NULL;
+	}
 	
 	ir->curframe = 0;