diff --git a/lib/gfxpoly.c b/lib/gfxpoly.c index a687e63..0af6bb3 100644 --- a/lib/gfxpoly.c +++ b/lib/gfxpoly.c @@ -956,8 +956,11 @@ ArtSVP* run_intersector(ArtSVP*svp, ArtWindRule rule) if(art_error_in_intersector) { msg(" Error in polygon processing"); - art_svp_free(result); art_error_in_intersector=0; + if(current_svp == result){ + return current_svp; + } + art_svp_free(result); return 0; } return result;