summaryrefslogtreecommitdiff
path: root/src/cairo-region.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-09-23 21:04:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-09-23 21:35:49 +0100
commit4f7c5a5033f41de94a7ea284a64f4afa0900fff1 (patch)
tree0d642eb72f32db3c37518f5b11fa0ed9d0879ae8 /src/cairo-region.c
parent45feb13c2689a8f5813e60fb0c2d17e9e02fd4b5 (diff)
[cairo-region] Call _cairo_error() at original error site.
Before returning a fresh CAIRO_STATUS_NO_MEMORY, remember to call cairo_error().
Diffstat (limited to 'src/cairo-region.c')
-rw-r--r--src/cairo-region.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-region.c b/src/cairo-region.c
index 4fe68325..e5889c72 100644
--- a/src/cairo-region.c
+++ b/src/cairo-region.c
@@ -124,8 +124,10 @@ _cairo_region_get_boxes (cairo_region_t *region, int *num_boxes, cairo_box_int_t
}
cboxes = _cairo_malloc_ab (nboxes, sizeof(cairo_box_int_t));
- if (cboxes == NULL)
+ if (cboxes == NULL) {
+ _cairo_error (CAIRO_STATUS_NO_MEMORY);
return CAIRO_STATUS_NO_MEMORY;
+ }
for (i = 0; i < nboxes; i++) {
cboxes[i].p1.x = pboxes[i].x1;