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

@@ -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);