]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 2 Jan 2014 13:53:25 +0000 (13:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 2 Jan 2014 13:53:25 +0000 (13:53 +0000)
coders/jp2.c

index 5195f2572cdd286301bdbd10a85665fa2e6ad806..343d07eb08cdc19dd3c810cb56f4f72de7fc2798 100644 (file)
@@ -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