From 7ee973a2149db53911459cbf26f28eccdbc99efb Mon Sep 17 00:00:00 2001 From: glennrp Date: Thu, 20 Nov 2014 18:30:54 +0000 Subject: [PATCH] Don't handle "previous" image in the JNG reader. JNG is a single-image format. --- coders/png.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/coders/png.c b/coders/png.c index 33b960f33..c57f0abab 100644 --- a/coders/png.c +++ b/coders/png.c @@ -4800,8 +4800,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info, static Image *ReadJNGImage(const ImageInfo *image_info,ExceptionInfo *exception) { Image - *image, - *previous; + *image; MagickBooleanType have_mng_structure, @@ -4857,18 +4856,11 @@ static Image *ReadJNGImage(const ImageInfo *image_info,ExceptionInfo *exception) have_mng_structure=MagickTrue; mng_info->image=image; - previous=image; image=ReadOneJNGImage(mng_info,image_info,exception); MngInfoFreeStruct(mng_info,&have_mng_structure); if (image == (Image *) NULL) { - if (IsImageObject(previous) != MagickFalse) - { - (void) CloseBlob(previous); - (void) DestroyImageList(previous); - } - if (logging != MagickFalse) (void) LogMagickEvent(CoderEvent,GetMagickModule(), "exit ReadJNGImage() with error"); -- 2.50.1