diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-10 12:45:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-10 12:45:31 +0100 |
commit | 8b486db9a9d74b40df296382eb1833bc40ae791a (patch) | |
tree | d56187e28380c11b274633cd4849f4f874f19c4f /src/cairo-path-fill.c | |
parent | 9d863cd3942c3086c24d67305f7a5892604d0eeb (diff) | |
download | cairo-8b486db9a9d74b40df296382eb1833bc40ae791a.tar.gz |
region: _cairo_region_create_in_error()
Avoid leaks when reporting memfault associated with constructing
regions.
Diffstat (limited to 'src/cairo-path-fill.c')
-rw-r--r-- | src/cairo-path-fill.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c index f431ea01e..24aaa3969 100644 --- a/src/cairo-path-fill.c +++ b/src/cairo-path-fill.c @@ -220,11 +220,8 @@ _cairo_path_fixed_fill_rectilinear_tessellate_to_region (const cairo_path_fixed_ CLEANUP_TRAPS: _cairo_traps_fini (&traps); - if (unlikely (status)) { /* XXX _cairo_region_create_in_error() */ - region = cairo_region_create (); - if (likely (region->status) == CAIRO_STATUS_SUCCESS) - region->status = status; - } + if (unlikely (status)) + region = _cairo_region_create_in_error (status); return region; } |