]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 24 Apr 2017 13:33:19 +0000 (09:33 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 24 Apr 2017 13:33:19 +0000 (09:33 -0400)
coders/mpc.c

index 57c8db7b00a97c9e55a9bd5dda3d8a84b320d036..601cf54299abf4b2bb964457c50a9804f1897cde 100644 (file)
@@ -1471,7 +1471,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
       Image *clone_image=CloneImage(image,0,0,MagickTrue,exception);
       if (clone_image == (Image *) NULL)
         ThrowWriterException(CacheError,"UnableToPersistPixelCache");
-      status=PersistPixelCache(image,cache_filename,MagickFalse,&offset,
+      status=PersistPixelCache(clone_image,cache_filename,MagickFalse,&offset,
         exception);
       clone_image=DestroyImage(clone_image);
     }