[trunk] fix call to opj_destroy_cstr_info_v2 in j2k_random_tile_access

This commit is contained in:
Julien Malik 2011-11-30 19:41:57 +00:00
parent 8c2d8bc85f
commit a361f618a1
1 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ int main(int argc, char **argv)
if(!opj_get_decoded_tile(dinfo, cio, image, tile_index )){ \
fprintf(stderr, "ERROR -> j2k_to_image: failed to decode tile %d\n", tile_index); \
opj_stream_destroy(cio); \
opj_destroy_cstr_info_v2(cstr_info); \
opj_destroy_cstr_info_v2(&cstr_info); \
opj_destroy_codec(dinfo); \
opj_image_destroy(image); \
fclose(fsrc); \
@ -278,7 +278,7 @@ int main(int argc, char **argv)
opj_stream_destroy(cio);
/* Destroy code stream info */
opj_destroy_cstr_info_v2(cstr_info);
opj_destroy_cstr_info_v2(&cstr_info);
/* Free remaining structures */
opj_destroy_codec(dinfo);