diff options
author | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-09 04:00:19 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-09 04:00:19 -0400 |
commit | 4c60ed5ec662e2d7088a7800dd7c71d3926c42a4 (patch) | |
tree | e0a4e05ad2eb998e4fa9dd1aaa3be9043d920b18 /pixman/pixman-region.c | |
parent | bcf01c21d704717264011182e71cfaaf6922a437 (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.c | 4 |
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; } |