summaryrefslogtreecommitdiff
path: root/pixman/pixman-region.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-07-09 04:00:19 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-07-09 04:00:19 -0400
commit4c60ed5ec662e2d7088a7800dd7c71d3926c42a4 (patch)
treee0a4e05ad2eb998e4fa9dd1aaa3be9043d920b18 /pixman/pixman-region.c
parentbcf01c21d704717264011182e71cfaaf6922a437 (diff)
Fix bug in pixman-region.c where empty regions would not be properly initialized.
Also add a couple more tests to region-test.c.
Diffstat (limited to 'pixman/pixman-region.c')
-rw-r--r--pixman/pixman-region.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pixman/pixman-region.c b/pixman/pixman-region.c
index 3d6c0ef..d7b1180 100644
--- a/pixman/pixman-region.c
+++ b/pixman/pixman-region.c
@@ -2142,9 +2142,7 @@ PREFIX(_init_rects) (region_type_t *region,
if (region->data->numRects == 0)
{
FREE_DATA (region);
- region->data = NULL;
-
- GOOD (region);
+ PREFIX(_init) (region);
return TRUE;
}