[Delete Object] Why delete a obj then ,the point of obj not NULL?

Description

I delete a obj, but the pointer of obj is not NULL, why it like this?

    lv_obj_del(label_date);
    printf("%p\n", label_date);

What MCU/Processor/Board and compiler are you using?

esp32

What do you want to achieve?

Does obj need to be set to NULL manually?

This is a basic principle in C. Passing a pointer by value does not change its value in the caller. You have to manually set it to NULL if that is what you want.

Sorry, I forgot it’s not a pointer parameter.

No problem :slight_smile: