commit | 3dfccb24f0f9c32594d58a06a6ea9fc28fe04867 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Wed Dec 28 21:47:20 2011 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Wed Dec 28 21:47:20 2011 +0000 |
tree | 03641960916fc6e484495b305cf5eeeed83c925e | |
parent | 3f1c12010ba5f446abca3b5ed6a21b3c43384e7c [diff] |
diff --git a/coders/jp2.c b/coders/jp2.c index de03feb..fcae3b6 100644 --- a/coders/jp2.c +++ b/coders/jp2.c
@@ -1010,6 +1010,8 @@ } status=jas_image_encode(jp2_image,jp2_stream,format,options) != 0 ? MagickTrue : MagickFalse; + if (options != (char *) NULL) + options=DestroyString(options); (void) jas_stream_close(jp2_stream); for (i=0; i < (ssize_t) number_components; i++) jas_matrix_destroy(pixels[i]);