From c931e8c36df4f5ead00bad209dd6af9aed201205 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 21 Feb 2017 12:44:30 -0500 Subject: [PATCH] ... --- ChangeLog | 4 ++++ MagickCore/colormap.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2aec3c295..ed3040bdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-02-21 7.0.5-1 Cristy + * 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 * Release ImageMagick version 7.0.5-0, GIT revision 19616:505fea9:20170220. diff --git a/MagickCore/colormap.c b/MagickCore/colormap.c index b9e639b49..893c65592 100644 --- a/MagickCore/colormap.c +++ b/MagickCore/colormap.c @@ -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)); } /* -- 2.40.0