Skip to content

Commit fe30661

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1600
1 parent cdb3837 commit fe30661

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: coders/bmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
15061506
if (GetNextImageInList(image) == (Image *) NULL)
15071507
{
15081508
status=MagickFalse;
1509-
return((Image *) NULL);
1509+
break;
15101510
}
15111511
image=SyncNextImageInList(image);
15121512
status=SetImageProgress(image,LoadImagesTag,TellBlob(image),

Diff for: coders/viff.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ static Image *ReadVIFFImage(const ImageInfo *image_info,
773773
AcquireNextImage(image_info,image,exception);
774774
if (GetNextImageInList(image) == (Image *) NULL)
775775
{
776-
image=DestroyImageList(image);
777-
return((Image *) NULL);
776+
status=MagickFalse;
777+
break;
778778
}
779779
image=SyncNextImageInList(image);
780780
status=SetImageProgress(image,LoadImagesTag,TellBlob(image),

0 commit comments

Comments
 (0)