From ff2431d8f17d4a7c906438042a649b04aec93558 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 7 May 2017 11:13:07 +0200 Subject: [PATCH] Replace image in list to fix issue reported in #467. --- coders/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/bmp.c b/coders/bmp.c index cc036a1f5..207118ed1 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -1380,7 +1380,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) if (flipped_image != (Image *) NULL) { DuplicateBlob(flipped_image,image); - image=DestroyImage(image); + ReplaceImageInList(&image, flipped_image); image=flipped_image; } } -- 2.40.0