From: cristy Date: Thu, 2 Jan 2014 13:53:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3006 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c0f1509d5373614643c565166ab379838df7273;p=imagemagick --- diff --git a/coders/jp2.c b/coders/jp2.c index 5195f2572..343d07eb0 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -260,6 +260,9 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) opj_codec_t *jp2_codec; + opj_codestream_index_t + *codestream_index = (opj_codestream_index_t *) NULL; + opj_dparameters_t parameters; @@ -472,6 +475,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) */ opj_destroy_codec(jp2_codec); opj_image_destroy(jp2_image); + opj_destroy_cstr_index(&codestream_index); return(GetFirstImageInList(image)); } #endif