]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 21 Feb 2017 17:44:30 +0000 (12:44 -0500)
committerCristy <urban-warrior@imagemagick.org>
Tue, 21 Feb 2017 17:44:30 +0000 (12:44 -0500)
ChangeLog
MagickCore/colormap.c

index 2aec3c295012f8098d5b4b307945832c10b66dd3..ed3040bdc5f5e5a22a316c30feac05dcc8567d45 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-21  7.0.5-1 Cristy  <quetzlzacatenango@image...>
+  * Fix Spurious memory allocation message (reference
+    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31438).
+
 2017-02-20  7.0.5-0 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.5-0, GIT revision 19616:505fea9:20170220.
 
index b9e639b49bd55fb04236ef23d415f3f602dd62ca..893c655928d732be790f2c8737c56f3a318fbb68 100644 (file)
@@ -128,7 +128,6 @@ MagickExport MagickBooleanType AcquireImageColormap(Image *image,
       ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
         image->filename);
     }
-  image->storage_class=PseudoClass;
   for (i=0; i < (ssize_t) image->colors; i++)
   {
     double
@@ -142,7 +141,7 @@ MagickExport MagickBooleanType AcquireImageColormap(Image *image,
     image->colormap[i].blue=pixel;
     image->colormap[i].alpha=OpaqueAlpha;
   }
-  return(MagickTrue);
+  return(SetImageStorageClass(image,PseudoClass,exception));
 }
 \f
 /*