mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 19:38:03 +02:00
[region] Add PLT entry for cairo_region_create_rectangles()
This commit is contained in:
parent
6da9c410d4
commit
bab8af62e7
1 changed files with 3 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ cairo_region_create_rectangles (cairo_rectangle_int_t *rects,
|
|||
return (cairo_region_t *)&_cairo_region_nil;
|
||||
|
||||
region->status = CAIRO_STATUS_SUCCESS;
|
||||
|
||||
|
||||
if (count > ARRAY_LENGTH (stack_pboxes)) {
|
||||
pboxes = _cairo_malloc_ab (count, sizeof (pixman_box32_t));
|
||||
|
||||
|
|
@ -171,12 +171,13 @@ cairo_region_create_rectangles (cairo_rectangle_int_t *rects,
|
|||
|
||||
region = (cairo_region_t *)&_cairo_region_nil;
|
||||
}
|
||||
|
||||
|
||||
if (pboxes != stack_pboxes)
|
||||
free (pboxes);
|
||||
|
||||
return region;
|
||||
}
|
||||
slim_hidden_def (cairo_region_create_rectangles);
|
||||
|
||||
/**
|
||||
* cairo_region_create_rectangle:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue