mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(group): fix default_group becomes wild pointer when deleted (#4076)
This commit is contained in:
parent
399069b4a2
commit
fd20fabfda
@ -92,6 +92,7 @@ void lv_group_del(lv_group_t * group)
|
||||
indev = lv_indev_get_next(indev);
|
||||
}
|
||||
|
||||
if(default_group == group) default_group = NULL;
|
||||
_lv_ll_clear(&(group->obj_ll));
|
||||
_lv_ll_remove(&LV_GC_ROOT(_lv_group_ll), group);
|
||||
lv_mem_free(group);
|
||||
|
Loading…
x
Reference in New Issue
Block a user