What LVGL version are you using?
9.2
Started from GitHub - EDGEMTech/lv_benchmark
What do you want to achieve?
I’m creating an HMI where the user can create and delete, as many times he wants, some widgets.
During the creation of the widgets I’m using the function lv_obj_add_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector)
to define the styles of the objects.
Searching on the forum I found this topic: Why do frequent calls to lv_obj_add_style() cause the system to crash?
Where @pete-pjb said that the lv_obj_add_style(…) will leak the memory.
Is this sentence steel true with LVGL 9.2?
Do I need to switch to lv_obj_set_style_xxxxx(…) function?
Could you explain how the two functions work?
Thank you in advance.
GS-X