wek
1
lv_tabview_clean() in https://github.com/littlevgl/lvgl/blob/master/src/lv_objx/lv_tabview.c#L210 calls lv_page_get_scrl() and then cleans the returned object.
lv_page_get_scrl() gets the parameter object’s ext_attr, casts it to lv_page_ext_t * and then returns this struct’s scrl member.
But tabview’s ext_attr is of a different type, lv_tabview_ext_t, so lv_page_get_scrl() applied to tabview is bound to return a bogus pointer.
Am I overlooking something?
Thanks,
Jan Waclawek
lv_tabview_clean
should be called on tab created by lv_tabview_add_tab
.
The comments were incorrect there and the function’s name is really not that intuitive so I renamed it to lv_tabview_clean_tab
in dev-7.0
.
wek
3
And that now makes sense
, thanks.
Can this be also backported to the head 6.x? I know it’s a PITA, but it’s still the production version after all… 
JW
We can’t fully backport because API changes needs to go into a new major version. However, I’ve fixed the comments.