blob: 5bba4f7e80cb12bee18e480246286a23aa20c4ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$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;
|