]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 5 Jul 2016 00:04:29 +0000 (20:04 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 5 Jul 2016 00:04:29 +0000 (20:04 -0400)
coders/histogram.c

index 8fc7e0598b407ff058dc9c336986ae8a3a91f6c9..a089fce0973ba57f97cef4e29d06a32d26eb6cbe 100644 (file)
@@ -375,7 +375,11 @@ static MagickBooleanType WriteHISTOGRAMImage(const ImageInfo *image_info,
       (LocaleCompare(write_info->magick,"HISTOGRAM") == 0))
     (void) FormatLocaleString(histogram_image->filename,MagickPathExtent,
       "miff:%s",write_info->filename);
+  histogram_image->blob=DetachBlob(histogram_image->blob);
+  histogram_image->blob=CloneBlobInfo(image->blob);
   status=WriteImage(write_info,histogram_image,exception);
+  image->blob=DetachBlob(image->blob);
+  image->blob=CloneBlobInfo(histogram_image->blob);
   histogram_image=DestroyImage(histogram_image);
   write_info=DestroyImageInfo(write_info);
   return(status);