diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-21 12:21:35 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-21 12:21:35 +0000 |
| commit | adca52578d6ba5284b7df39ebdf9ed61a5e31d74 (patch) | |
| tree | 328a7b73ba1efd29b69586eb9fc48de5b4c6eb49 /libopenjpeg/j2k.c | |
| parent | 3810e943b18e0ab0e2def73c54e2580c327dbb31 (diff) | |
Memory leaks fixed
Diffstat (limited to 'libopenjpeg/j2k.c')
| -rw-r--r-- | libopenjpeg/j2k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index 8fabbf96..f013f79a 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -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 */ |
