From c7d011f9873e278b66e8d226d3ef1524bf64dac7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 18 Jun 2018 18:50:04 -0400 Subject: [PATCH] ... --- coders/mvg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coders/mvg.c b/coders/mvg.c index 2a49f0a8c..ba8eaea50 100644 --- a/coders/mvg.c +++ b/coders/mvg.c @@ -218,7 +218,10 @@ static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception) } } if (draw_info->primitive == (char *) NULL) - ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); + { + draw_info=DestroyDrawInfo(draw_info); + return(DestroyImageList(image)); + } (void) DrawImage(image,draw_info,exception); (void) SetImageArtifact(image,"MVG",draw_info->primitive); draw_info=DestroyDrawInfo(draw_info); -- 2.40.0