$NetBSD: patch-aa,v 1.2 2004/11/15 03:43:46 rh Exp $ --- src/icimage.c.orig 2004-11-08 11:43:58.000000000 -0500 +++ src/icimage.c 2004-11-08 11:44:04.000000000 -0500 @@ -263,10 +263,16 @@ case CT_NONE: return; case CT_PIXMAP: - pixman_image_destroy (image->clientClip); + + if (image->clientClip) { + pixman_image_destroy (image->clientClip); + } + break; default: - pixman_region_destroy (image->clientClip); + if (image->clientClip) { + pixman_image_destroy (image->clientClip); + } break; } image->clientClip = NULL;