Return result from pixman_image_set_transform().
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Thu, 24 Sep 2009 09:22:33 +0000 (05:22 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Thu, 24 Sep 2009 09:22:33 +0000 (05:22 -0400)
Previously it would always return TRUE, even when malloc() had failed.

pixman/pixman-image.c

index 5831953..bba5fd6 100644 (file)
@@ -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