Mercurial > pidgin
changeset 1934:e875b1cb2470
[gaim-migrate @ 1944]
goodbye
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 01 Jun 2001 18:21:54 +0000 |
parents | e9f926eaf0c9 |
children | 22a3b4b52971 |
files | src/oscar.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oscar.c Fri Jun 01 17:53:37 2001 +0000 +++ b/src/oscar.c Fri Jun 01 18:21:54 2001 +0000 @@ -1634,7 +1634,8 @@ gdk_pixbuf_render_pixmap_and_mask(buf, &pm, &bm, 0); gtk_pixmap_set(GTK_PIXMAP(ir->pix), pm, bm); gdk_pixmap_unref(pm); - gdk_bitmap_unref(bm); + if (bm) + gdk_bitmap_unref(bm); break; case GDK_PIXBUF_FRAME_REVERT: frame = frames->data; @@ -1642,7 +1643,8 @@ gdk_pixbuf_render_pixmap_and_mask(buf, &pm, &bm, 0); gtk_pixmap_set(GTK_PIXMAP(ir->pix), pm, bm); gdk_pixmap_unref(pm); - gdk_bitmap_unref(bm); + if (bm) + gdk_bitmap_unref(bm); break; } ir->curframe = (ir->curframe + 1) % g_list_length(frames); @@ -3212,7 +3214,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); #endif