Commit e5b9d96f authored by Uli Schlachter's avatar Uli Schlachter
Browse files

Avoid a use-after-scope

This is the same fix as commit b345be5a, but in a different place in
the same file.

Fixes: #453

Signed-off-by: Uli Schlachter's avatarUli Schlachter <psychon@znc.in>
parent 7788000b
......@@ -1041,6 +1041,7 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor,
if (status == CAIRO_INT_STATUS_UNSUPPORTED) {
cairo_polygon_t polygon;
cairo_box_t limits;
cairo_fill_rule_t fill_rule = CAIRO_FILL_RULE_WINDING;
if (! _cairo_rectangle_contains_rectangle (&extents->unbounded,
......@@ -1049,7 +1050,6 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor,
if (extents->clip->num_boxes == 1) {
_cairo_polygon_init (&polygon, extents->clip->boxes, 1);
} else {
cairo_box_t limits;
_cairo_box_from_rectangle (&limits, &extents->unbounded);
_cairo_polygon_init (&polygon, &limits, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment