Line 944:Memory release of img.comps[i].data when NO_PACKETS_DECODING is not defined
This commit is contained in:
parent
7bdb0331a6
commit
1cc9fa6815
|
@ -941,13 +941,11 @@ int xml_out_frame(FILE* file, FILE* xmlout, mj2_sample_t *sample, unsigned int s
|
|||
/* Decode J2K to image: */
|
||||
if (!j2k_decode(frame_codestream, sample->sample_size-8, &img, &cp)) {
|
||||
free(frame_codestream);
|
||||
/* Do this?
|
||||
#ifndef NO_PACKETS_DECODING
|
||||
for (i=0; i<img.numcomps; i++)
|
||||
for (i=0; i<img.numcomps; i++)
|
||||
free(img.comps[i].data);
|
||||
#endif
|
||||
j2k_dec_release();
|
||||
*/
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue