fix(group): be sure the default group pointer points to a proper place
@@ -92,6 +92,9 @@ void lv_group_del(lv_group_t * group)
indev = lv_indev_get_next(indev);
}
+ /*If the group is the default group, set the default group as NULL*/
+ if(group == lv_group_get_default()) lv_group_set_default(NULL);
+
_lv_ll_clear(&(group->obj_ll));
_lv_ll_remove(&LV_GC_ROOT(_lv_group_ll), group);
lv_free(group);
