mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-07 06:38:31 +08:00
fix a small memleak in jpeg decoding
This commit is contained in:
parent
b38f04a3ec
commit
6c7de059ba
@ -366,6 +366,8 @@ struct decoder_error_mgr {
|
||||
|
||||
static void handle_jpeg_error(j_common_ptr cinfo) {
|
||||
struct decoder_error_mgr *err = (struct decoder_error_mgr*)(cinfo->err);
|
||||
jpeg_finish_decompress((j_decompress_ptr)cinfo);
|
||||
jpeg_destroy_decompress((j_decompress_ptr)cinfo);
|
||||
longjmp(err->setjmp_buffer, 1);
|
||||
LOGE("JPEG read/write error");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user