1
0
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:
embeddedt 2020-03-06 10:22:33 -05:00 committed by GitHub
parent c513977559
commit 48cbc84e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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