]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/746
authorCristy <urban-warrior@imagemagick.org>
Mon, 11 Sep 2017 20:23:35 +0000 (16:23 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 11 Sep 2017 20:23:35 +0000 (16:23 -0400)
https://github.com/ImageMagick/ImageMagick/issues/741

MagickCore/cache.c
coders/mpc.c

index bf60ae8cdb12f4dd025119d952eb0873ebaf75b9..807e21237857e2b2b8deeeb4f3a2bb451a155004 100644 (file)
@@ -1645,8 +1645,6 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
                   exception);
               if (status != MagickFalse)
                 {
-                  if (cache_info->reference_count == 1)
-                    cache_info->nexus_info=(NexusInfo **) NULL;
                   destroy=MagickTrue;
                   image->cache=clone_image.cache;
                 }
index 680f5595e5b61c05aad6cf05d68980bad46ad37e..0eae0303181c8b954b3169490026f57c649a2e73 100644 (file)
@@ -1494,7 +1494,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
       Initialize persistent pixel cache.
     */
     status=PersistPixelCache(image,cache_filename,MagickFalse,&offset,
-      exception); 
+      exception);
     if (status == MagickFalse)
       ThrowWriterException(CacheError,"UnableToPersistPixelCache");
     if (GetNextImageInList(image) == (Image *) NULL)