lv_obj_null_on_delete() function
Utility to set an object reference to NULL when it gets deleted. The reference should be in a location that will not become invalid during the object's lifetime, i.e. static or allocated.
Arguments
obj_ptr
a pointer to a pointer to an object