summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2013-09-29 08:50:32 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2013-09-29 08:50:32 +0300
commit334ac705f36e0f2a73c1a87cbd3ebe272e3b7ab6 (patch)
tree38f79e276fbb3dfefdbca47e01d46b3b15123cb5 /src
parentcb92a60a6120209bade9a84aca1e206db51dc2ce (diff)
Eo: fix when detaching the composite of its parent ... that has to exist
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo_base_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 28b52d93f1..33f826a353 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -121,7 +121,7 @@ _parent_set(Eo *obj, void *class_data, va_list *list)
121 if (pd->parent == parent_id) 121 if (pd->parent == parent_id)
122 return ; 122 return ;
123 123
124 if (eo_composite_is(obj)) 124 if (eo_composite_is(obj) && pd->parent)
125 { 125 {
126 eo_composite_detach(obj, pd->parent); 126 eo_composite_detach(obj, pd->parent);
127 } 127 }