Commit 44f808fc authored by Uli Schlachter's avatar Uli Schlachter
Browse files

Merge branch 'use-after-scope' into 'master'

Avoid a use-after-scope

Closes #453

See merge request cairo/cairo!143
parents 33cce5dc e5b9d96f
Pipeline #293128 passed with stages
in 17 minutes and 44 seconds
...@@ -1041,6 +1041,7 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor, ...@@ -1041,6 +1041,7 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor,
if (status == CAIRO_INT_STATUS_UNSUPPORTED) { if (status == CAIRO_INT_STATUS_UNSUPPORTED) {
cairo_polygon_t polygon; cairo_polygon_t polygon;
cairo_box_t limits;
cairo_fill_rule_t fill_rule = CAIRO_FILL_RULE_WINDING; cairo_fill_rule_t fill_rule = CAIRO_FILL_RULE_WINDING;
if (! _cairo_rectangle_contains_rectangle (&extents->unbounded, if (! _cairo_rectangle_contains_rectangle (&extents->unbounded,
...@@ -1049,7 +1050,6 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor, ...@@ -1049,7 +1050,6 @@ _cairo_spans_compositor_stroke (const cairo_compositor_t *_compositor,
if (extents->clip->num_boxes == 1) { if (extents->clip->num_boxes == 1) {
_cairo_polygon_init (&polygon, extents->clip->boxes, 1); _cairo_polygon_init (&polygon, extents->clip->boxes, 1);
} else { } else {
cairo_box_t limits;
_cairo_box_from_rectangle (&limits, &extents->unbounded); _cairo_box_from_rectangle (&limits, &extents->unbounded);
_cairo_polygon_init (&polygon, &limits, 1); _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