Closed qarkai closed 3 months ago
Fix memory leaks of opj_*_t structs. Check opj_codec_set_threads() return value. Rename opj_buffer_info_t to OpjBufferInfo. Allocate decode_buffer on stack. Reduce scope of variables.
opj_*_t
opj_codec_set_threads()
opj_buffer_info_t
OpjBufferInfo
decode_buffer
Implemented in commit 45f84b28b5ebca520850cbb78e29641c2b81a6cd
Fix memory leaks of
opj_*_t
structs. Checkopj_codec_set_threads()
return value. Renameopj_buffer_info_t
toOpjBufferInfo
. Allocatedecode_buffer
on stack. Reduce scope of variables.