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:
7feb710
)
In pixman_image_set_transform() allow NULL for transform
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 15 Feb 2011 14:11:44 +0000
(09:11 -0500)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Fri, 18 Feb 2011 11:21:38 +0000
(06:21 -0500)
Previously, this would crash unless the existing transform were also
NULL.
pixman/pixman-image.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-image.c
b/pixman/pixman-image.c
index 55fc17ac3f6936f83cb347a983928069b8566ef2..9103ca6ccd01f8d95d8bd959e90bff2017d70392 100644
(file)
--- 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;