mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
lv_img_decoder_close: fix if closed after error
This commit is contained in:
parent
9023588fef
commit
03f18260a9
@ -173,7 +173,9 @@ lv_res_t lv_img_decoder_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_c
|
|||||||
*/
|
*/
|
||||||
void lv_img_decoder_close(lv_img_decoder_dsc_t * dsc)
|
void lv_img_decoder_close(lv_img_decoder_dsc_t * dsc)
|
||||||
{
|
{
|
||||||
if(dsc->decoder->close_cb) dsc->decoder->close_cb(dsc->decoder, dsc);
|
if(dsc->decoder) {
|
||||||
|
if(dsc->decoder->close_cb) dsc->decoder->close_cb(dsc->decoder, dsc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user