From c673c83e070ed2392c00716fe20a80a798588b39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Thu, 24 Sep 2009 05:22:33 -0400 Subject: [PATCH] Return result from pixman_image_set_transform(). Previously it would always return TRUE, even when malloc() had failed. --- pixman/pixman-image.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 5831953..bba5fd6 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -312,7 +312,7 @@ pixman_image_set_transform (pixman_image_t * image, { { { pixman_fixed_1, 0, 0 }, { 0, pixman_fixed_1, 0 }, - { 0, 0, pixman_fixed_1 }} + { 0, 0, pixman_fixed_1 } } }; image_common_t *common = (image_common_t *)image; @@ -342,10 +342,12 @@ pixman_image_set_transform (pixman_image_t * image, memcpy (common->transform, transform, sizeof(pixman_transform_t)); + result = TRUE; + out: image_property_changed (image); - return TRUE; + return result; } PIXMAN_EXPORT void -- 2.7.4