From 6a8dd1a3b64ab62a7685f526e1b588334b7324d6 Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Sat, 28 May 2022 22:21:01 +0300 Subject: [PATCH] fix(style): reset style lookup table after gc sweep/lv_deinit (#3385) --- src/misc/lv_style.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/misc/lv_style.c b/src/misc/lv_style.c index fa2960f77..57998ecfe 100644 --- a/src/misc/lv_style.c +++ b/src/misc/lv_style.c @@ -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. */