mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_img_decoder: fix incorrect debug assert (#1402)
This commit is contained in:
parent
c513977559
commit
48cbc84e5c
@ -392,9 +392,9 @@ lv_res_t lv_img_decoder_built_in_open(lv_img_decoder_t * decoder, lv_img_decoder
|
||||
user_data->opa = lv_mem_alloc(palette_size * sizeof(lv_opa_t));
|
||||
if(user_data->palette == NULL || user_data->opa == NULL) {
|
||||
LV_LOG_ERROR("img_decoder_built_in_open: out of memory");
|
||||
#if LV_USE_FILESYSTEM
|
||||
LV_ASSERT_MEM(user_data->f);
|
||||
#endif
|
||||
|
||||
LV_ASSERT_MEM(user_data->palette);
|
||||
LV_ASSERT_MEM(user_data->opa);
|
||||
}
|
||||
|
||||
if(dsc->src_type == LV_IMG_SRC_FILE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user