1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(style): reset style lookup table after gc sweep/lv_deinit (#3385)

This commit is contained in:
Amir Gonnen 2022-05-28 22:21:01 +03:00 committed by GitHub
parent 6be43b83b3
commit 6a8dd1a3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,9 @@ void lv_style_reset(lv_style_t * style)
lv_style_prop_t lv_style_register_prop(uint8_t flag)
{
if(LV_GC_ROOT(_lv_style_custom_prop_flag_lookup_table) == NULL) {
_lv_style_custom_prop_flag_lookup_table_size = 0;
}
/*
* Allocate the lookup table if it's not yet available.
*/