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/t2.c | |
| parent | 3810e943b18e0ab0e2def73c54e2580c327dbb31 (diff) | |
Memory leaks fixed
Diffstat (limited to 'libopenjpeg/t2.c')
| -rw-r--r-- | libopenjpeg/t2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index 6c0e012b..649493c7 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -238,11 +238,12 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera } } } - + if (bio_flush(bio)) { + bio_destroy(bio); return -999; /* modified to eliminate longjmp !! */ } - + c += bio_numbytes(bio); bio_destroy(bio); |
