Eo: fix when detaching the composite of its parent ... that has to exist

This commit is contained in:
Daniel Zaoui 2013-09-29 08:50:32 +03:00
parent cb92a60a61
commit 334ac705f3
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ _parent_set(Eo *obj, void *class_data, va_list *list)
if (pd->parent == parent_id)
return ;
if (eo_composite_is(obj))
if (eo_composite_is(obj) && pd->parent)
{
eo_composite_detach(obj, pd->parent);
}