Memory leaks fixed

This commit is contained in:
Francois-Olivier Devaux
2007-08-21 12:21:35 +00:00
parent 3810e943b1
commit adca52578d
3 changed files with 6 additions and 2 deletions

View File

@@ -2585,6 +2585,8 @@ bool j2k_encode(opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, char *index)
tcd_free_encode(tcd);
tcd_destroy(tcd);
free(j2k->cur_totnum_tp);
j2k_write_eoc(j2k);
/* Creation of the index file */