summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-19 13:35:38 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:35:38 -0400
commit39d8a36b5e3541f0c2b715c0df2784388487691d (patch)
tree76a2cb25bce6a36fe363c41571529f8200ecb1c9 /src/lib/eo/eo.c
parent8c8901579506e8a8110a051c802227b1ac2090ee (diff)
eo: only call efl_parent_set when parent_id is available
Summary: this is no functinal change, we safe the calling to efl_parent_set. Nothing else, the base implementation is initializated with NULL as parent, and efl_parent_set with NULL would have returned in the first few lines. fix T7032 Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Maniphest Tasks: T7032 Differential Revision: https://phab.enlightenment.org/D6327
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 2df52d3..6dbd66b 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -911,7 +911,7 @@ _efl_add_internal_start(const char *file, int line, const Efl_Class *klass_id, E
911 efl_ref(eo_id); 911 efl_ref(eo_id);
912 912
913 /* Reference for the parent if is_ref is done in _efl_add_end */ 913 /* Reference for the parent if is_ref is done in _efl_add_end */
914 efl_parent_set(eo_id, parent_id); 914 if (parent_id) efl_parent_set(eo_id, parent_id);
915 915
916 /* eo_id can change here. Freeing is done on the resolved object. */ 916 /* eo_id can change here. Freeing is done on the resolved object. */
917 eo_id = efl_constructor(eo_id); 917 eo_id = efl_constructor(eo_id);