delete a smart child from its parent if it is still in there on cleanup :)

SVN revision: 14388
This commit is contained in:
Carsten Haitzler 2005-04-27 02:35:48 +00:00
parent 5024eab748
commit bee9d128ea
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@ evas_object_smart_cleanup(Evas_Object *obj)
Evas_Smart *s;
s = obj->smart.smart;
if (obj->smart.parent)
evas_object_smart_member_del(obj);
while (obj->smart.contained)
{
/* null out smart parent object - maybe a hole to creep through? */