[trunk] fix call to opj_destroy_cstr_info_v2 in j2k_random_tile_access
This commit is contained in:
parent
8c2d8bc85f
commit
a361f618a1
|
@ -259,7 +259,7 @@ int main(int argc, char **argv)
|
||||||
if(!opj_get_decoded_tile(dinfo, cio, image, tile_index )){ \
|
if(!opj_get_decoded_tile(dinfo, cio, image, tile_index )){ \
|
||||||
fprintf(stderr, "ERROR -> j2k_to_image: failed to decode tile %d\n", tile_index); \
|
fprintf(stderr, "ERROR -> j2k_to_image: failed to decode tile %d\n", tile_index); \
|
||||||
opj_stream_destroy(cio); \
|
opj_stream_destroy(cio); \
|
||||||
opj_destroy_cstr_info_v2(cstr_info); \
|
opj_destroy_cstr_info_v2(&cstr_info); \
|
||||||
opj_destroy_codec(dinfo); \
|
opj_destroy_codec(dinfo); \
|
||||||
opj_image_destroy(image); \
|
opj_image_destroy(image); \
|
||||||
fclose(fsrc); \
|
fclose(fsrc); \
|
||||||
|
@ -278,7 +278,7 @@ int main(int argc, char **argv)
|
||||||
opj_stream_destroy(cio);
|
opj_stream_destroy(cio);
|
||||||
|
|
||||||
/* Destroy code stream info */
|
/* Destroy code stream info */
|
||||||
opj_destroy_cstr_info_v2(cstr_info);
|
opj_destroy_cstr_info_v2(&cstr_info);
|
||||||
|
|
||||||
/* Free remaining structures */
|
/* Free remaining structures */
|
||||||
opj_destroy_codec(dinfo);
|
opj_destroy_codec(dinfo);
|
||||||
|
|
Loading…
Reference in New Issue