]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/567
authorCristy <urban-warrior@imagemagick.org>
Sun, 16 Jul 2017 18:42:49 +0000 (14:42 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 16 Jul 2017 18:42:49 +0000 (14:42 -0400)
coders/jp2.c

index b9fe4ab0014f5e4dd5626446485084146be107e2..48352d823dea27b45c56ff94cd432b66d13ded75 100644 (file)
@@ -917,7 +917,7 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image,
       &parameters.subsampling_dx,&parameters.subsampling_dy);
   property=GetImageProperty(image,"comment",exception);
   if (property != (const char *) NULL)
-    parameters.cp_comment=ConstantString(property);
+    parameters.cp_comment=property;
   channels=3;
   jp2_colorspace=OPJ_CLRSPC_SRGB;
   if (image->colorspace == YUVColorspace)