fix(objid): free old id before assign new one (#6697)

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu
2024-08-21 16:20:37 +08:00
committed by GitHub
parent 78d29d2853
commit afcf722e6f
7 changed files with 94 additions and 31 deletions

View File

@@ -33,6 +33,7 @@ Below APIs needed to be implemented and linked to lvgl.
.. code:: c
void lv_obj_set_id(lv_obj_t * obj, void * id);
void lv_obj_assign_id(const lv_obj_class_t * class_p, lv_obj_t * obj);
void lv_obj_free_id(lv_obj_t * obj);
const char * lv_obj_stringify_id(lv_obj_t * obj, char * buf, uint32_t len);