mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 05:20:22 +01:00
xcb: Fix a NULL dereference
This fixes a crash in the hatchings test case. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
1aa077e129
commit
adf026fffe
1 changed files with 5 additions and 3 deletions
|
|
@ -3336,9 +3336,11 @@ _composite_opacity_boxes (void *closure,
|
|||
info.opacity = mask_pattern->color.alpha;
|
||||
|
||||
/* XXX for lots of boxes create a clip region for the fully opaque areas */
|
||||
for (i = 0; i < clip->num_boxes; i++)
|
||||
do_unaligned_box(composite_opacity, &info,
|
||||
&clip->boxes[i], dst_x, dst_y);
|
||||
if (clip) {
|
||||
for (i = 0; i < clip->num_boxes; i++)
|
||||
do_unaligned_box(composite_opacity, &info,
|
||||
&clip->boxes[i], dst_x, dst_y);
|
||||
}
|
||||
cairo_surface_destroy (&info.src->base);
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue