summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index fa64ce135f..e78b6f0f24 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1546,7 +1546,14 @@ eo_unref(const Eo *obj_id)
1546EAPI void 1546EAPI void
1547eo_del(const Eo *obj) 1547eo_del(const Eo *obj)
1548{ 1548{
1549 eo_unref(obj); 1549 if (eo_do(obj, eo_parent_get()))
1550 {
1551 eo_do(obj, eo_parent_set(NULL));
1552 }
1553 else
1554 {
1555 eo_unref(obj);
1556 }
1550} 1557}
1551 1558
1552EAPI int 1559EAPI int