From 510c0d088a975efe75cc2b796547f3aaed1c18e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Tue, 15 Feb 2011 09:11:44 -0500 Subject: [PATCH] In pixman_image_set_transform() allow NULL for transform Previously, this would crash unless the existing transform were also NULL. --- pixman/pixman-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 55fc17a..9103ca6 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -502,7 +502,7 @@ pixman_image_set_transform (pixman_image_t * image, if (common->transform == transform) return TRUE; - if (memcmp (&id, transform, sizeof (pixman_transform_t)) == 0) + if (!transform || memcmp (&id, transform, sizeof (pixman_transform_t)) == 0) { free (common->transform); common->transform = NULL; -- 2.7.4