When pixman_compute_composite_region32() returns FALSE, don't fini the region.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 31 Aug 2010 04:30:54 +0000 (00:30 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 8 Sep 2010 23:15:01 +0000 (19:15 -0400)
commit27f7852b5ac8d137c917e653fb7113f419a4c77a
tree1acd1d4b89d4e7692626a6d568be9c1f4749293d
parentdf6dbc90248a41b5b8362010e5b8d34358688786
When pixman_compute_composite_region32() returns FALSE, don't fini the region.

The rule is that the region passed in must be initialized and that the
region returned will still be valid. Ie., the lifecycle is the
responsibility of the caller, regardless of what the function returns.

Previously, compute_composite_region32() would finalize the region and
then return FALSE, and then the caller would finalize the region
again, leading to memory corruption in some cases.
pixman/pixman.c