]> granicus.if.org Git - imagemagick/commitdiff
... 7.0.5-5
authorCristy <urban-warrior@imagemagick.org>
Mon, 24 Apr 2017 17:17:44 +0000 (13:17 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 24 Apr 2017 17:17:44 +0000 (13:17 -0400)
ChangeLog
MagickCore/cache.c
coders/mpc.c

index 7c6c4e0fa45b4b7f0b4f65cd1af1d82237af7e3f..4cd0fd9d94ede000ef455b811793d1b02f953768 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,5 @@
 2017-04-24  7.0.5-5 Cristy  <quetzlzacatenango@image...>
-  * Release ImageMagick version 7.0.5-5, GIT revision 19908:bc92979:20170424.
+  * Release ImageMagick version 7.0.5-5, GIT revision 19915:12eec43:20170424.
 
 2017-03-26  7.0.5-5 Cristy  <quetzlzacatenango@image...>
   * Minimize buffer copies to improve OpenCL performance.
index d27e714d52fa60af2d0e62a6b1bf4105fd76964b..1f008b7f4c0a5729f30ef27ad59891ccf8953063 100644 (file)
@@ -3823,34 +3823,6 @@ MagickExport MagickBooleanType PersistPixelCache(Image *image,
       *offset+=cache_info->length+page_size-(cache_info->length % page_size);
       return(MagickTrue);
     }
-  if ((cache_info->mode != ReadMode) &&
-      ((cache_info->type == DiskCache) || (cache_info->type == MapCache)) &&
-      (cache_info->reference_count == 1))
-    {
-      LockSemaphoreInfo(cache_info->semaphore);
-      if ((cache_info->mode != ReadMode) &&
-          ((cache_info->type == DiskCache) || (cache_info->type == MapCache)) &&
-          (cache_info->reference_count == 1))
-        {
-          /*
-            Usurp existing persistent pixel cache.
-          */
-          if (rename_utf8(cache_info->cache_filename, filename) == 0)
-            {
-              (void) CopyMagickString(cache_info->cache_filename,filename,
-                MagickPathExtent);
-              *offset+=cache_info->length+page_size-(cache_info->length %
-                page_size);
-              UnlockSemaphoreInfo(cache_info->semaphore);
-              cache_info=(CacheInfo *) ReferencePixelCache(cache_info);
-              if (image->debug != MagickFalse)
-                (void) LogMagickEvent(CacheEvent,GetMagickModule(),
-                  "Usurp resident persistent cache");
-              return(MagickTrue);
-            }
-        }
-      UnlockSemaphoreInfo(cache_info->semaphore);
-    }
   /*
     Clone persistent pixel cache.
   */
index 88e30eb711a90d20a83d15a6795ff5e77de75970..2b8e6ab92fb297d5a49558a4a4c08d8055b9f5a3 100644 (file)
@@ -1467,16 +1467,8 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
     /*
       Initialize persistent pixel cache.
     */
-    {
-      Image *clone_image = CloneImage(image,0,0,MagickTrue,exception);
-      if (clone_image == (Image *) NULL)
-        ThrowWriterException(CacheError,"UnableToPersistPixelCache");
-      status=PersistPixelCache(clone_image,cache_filename,MagickFalse,&offset,
-        exception);
-      clone_image=DestroyImage(clone_image);
-      if (status == MagickFalse)
-        ThrowWriterException(CacheError,"UnableToPersistPixelCache");
-    }
+    status=PersistPixelCache(image,cache_filename,MagickFalse,&offset,
+      exception);
     if (GetNextImageInList(image) == (Image *) NULL)
       break;
     image=SyncNextImageInList(image);