]> granicus.if.org Git - imagemagick/commitdiff
Replace image in list to fix issue reported in #467.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 7 May 2017 09:13:07 +0000 (11:13 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 7 May 2017 09:13:07 +0000 (11:13 +0200)
coders/bmp.c

index cc036a1f5cc2ab256064334b3352c905a3a7d92f..207118ed10fe430d1b19087b59762ef69288133e 100644 (file)
@@ -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;
           }
       }