From: Cristy Date: Sat, 25 Aug 2018 23:42:03 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-11~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23906687f20ce8145a46a53b92f0d37af630d57d;p=imagemagick ... --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index a0d78919b..43f425ad2 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -4724,7 +4724,14 @@ static MagickBooleanType DrawPolygonPrimitive(Image *image, return(MagickFalse); DisableMSCWarning(4127) if (0) - status=DrawBoundingRectangles(image,draw_info,polygon_info[0],exception); + { + status=DrawBoundingRectangles(image,draw_info,polygon_info[0],exception); + if (status == MagickFalse) + { + polygon_info=DestroyPolygonThreadSet(polygon_info); + return(status); + } + } RestoreMSCWarning if (image->debug != MagickFalse) (void) LogMagickEvent(DrawEvent,GetMagickModule()," begin draw-polygon");