evas - smart obj - set smart data to null after del func to avoid bugs

so smart data get cleanly returns null ... set it to nukll after del
func called as now the smart data shiuld be gone and not usable
anymore. this means we dont return junk smart data if called after this.

@fix
This commit is contained in:
Carsten Haitzler 2022-03-26 23:03:14 +00:00
parent dc81e925c8
commit da0a6f9ed0
1 changed files with 1 additions and 0 deletions

View File

@ -1462,6 +1462,7 @@ evas_object_smart_del(Evas_Object *eo_obj)
free(sobj->interface_privates);
sobj->interface_privates = NULL;
sobj->data = NULL;
if (s) evas_object_smart_unuse(s);
}