From b7adcf67f8c640c146bada1fbeaa1cda1cfa825a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 11 Oct 2007 14:11:06 +0100 Subject: [cairo-path-stroke] Jump to cleanup after error. Incorrect early return in _cairo_stroker_curve_to() after _cairo_stroker_join() resulted in leaking the local spline and pen. --- src/cairo-path-stroke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-path-stroke.c') diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c index ce523b06..a2fed557 100644 --- a/src/cairo-path-stroke.c +++ b/src/cairo-path-stroke.c @@ -816,7 +816,7 @@ _cairo_stroker_curve_to (void *closure, if (stroker->has_current_face) { status = _cairo_stroker_join (stroker, &stroker->current_face, &start); if (status) - return status; + goto CLEANUP_PEN; } else if (!stroker->has_first_face) { stroker->first_face = start; stroker->has_first_face = TRUE; -- cgit v1.2.3