projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb16d17
)
Return result from pixman_image_set_transform().
author
Søren Sandmann Pedersen
<sandmann@redhat.com>
Thu, 24 Sep 2009 09:22:33 +0000
(
05:22
-0400)
committer
Sø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
patch
|
blob
|
history
diff --git
a/pixman/pixman-image.c
b/pixman/pixman-image.c
index
5831953
..
bba5fd6
100644
(file)
--- 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