mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 17:47:28 +08:00
fix(bin_decoder): fix potential free garbage address (#5509)
This commit is contained in:
@@ -653,6 +653,7 @@ static lv_result_t decode_indexed(lv_image_decoder_t * decoder, lv_image_decoder
|
|||||||
exit_with_buf:
|
exit_with_buf:
|
||||||
if(dsc->src_type == LV_IMAGE_SRC_FILE && !is_compressed) {
|
if(dsc->src_type == LV_IMAGE_SRC_FILE && !is_compressed) {
|
||||||
lv_free((void *)palette);
|
lv_free((void *)palette);
|
||||||
|
decoder_data->palette = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(draw_buf_indexed) lv_draw_buf_destroy(draw_buf_indexed);
|
if(draw_buf_indexed) lv_draw_buf_destroy(draw_buf_indexed);
|
||||||
|
|||||||
Reference in New Issue
Block a user