summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-09-21 10:05:52 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-09-21 10:05:52 -0400
commit0742ba41646853a5edf90c2f3102f49b248321ee (patch)
tree1caf6b8139a60b4a2007d34a6da4eed361e2aae8
parent7cd4f2fa201c4dc846153c022423e3dced2cfb13 (diff)
compute_composite_region32: Zero extents before returning FALSE.
If the extents of the composite region are broken such that x2 <= x1 or y2 <= y1, then we need to zero the extents before returning so that the region won't be completely broken when calling pixman_region32_fini().
-rw-r--r--pixman/pixman.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pixman/pixman.c b/pixman/pixman.c
index 22963253..bd9305b7 100644
--- a/pixman/pixman.c
+++ b/pixman/pixman.c
@@ -306,6 +306,10 @@ pixman_compute_composite_region32 (pixman_region32_t * region,
if (region->extents.x1 >= region->extents.x2 ||
region->extents.y1 >= region->extents.y2)
{
+ region->extents.x1 = 0;
+ region->extents.x2 = 0;
+ region->extents.y1 = 0;
+ region->extents.y2 = 0;
return FALSE;
}