mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 13:40:31 +01:00
[cairo-clip] Add missing error status for _cairo__clip_intersect_region()
An out-of-memory error path missed setting CAIRO_STATUS_NO_MEMORY.
This commit is contained in:
parent
b5d2506879
commit
3fbc4bb5ae
1 changed files with 2 additions and 0 deletions
|
|
@ -350,6 +350,8 @@ _cairo_clip_intersect_region (cairo_clip_t *clip,
|
|||
if (pixman_region_copy (&clip->region, ®ion) ==
|
||||
PIXMAN_REGION_STATUS_SUCCESS)
|
||||
clip->has_region = TRUE;
|
||||
else
|
||||
status = CAIRO_STATUS_NO_MEMORY;
|
||||
} else {
|
||||
pixman_region16_t intersection;
|
||||
pixman_region_init (&intersection);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue