summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-04-25 15:44:17 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-05-09 09:33:29 -0700
commit7b7ad5380a2900bfabb03f2ac86c96caa66ededf (patch)
tree3b85c55a41dfec03d413f4258186f5d58ab93504 /src/lib/ecore
parenteb1d47349bbefa9d224e4bea62e9cd0c3fb37fda (diff)
ecore: property handle allocation error in Efl.CompositeModel.
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8795
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/efl_composite_model.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_composite_model.c b/src/lib/ecore/efl_composite_model.c
index 4a7e11413e..913d2041af 100644
--- a/src/lib/ecore/efl_composite_model.c
+++ b/src/lib/ecore/efl_composite_model.c
@@ -163,7 +163,6 @@ _efl_composite_model_child_added(void *data, const Efl_Event *event)
163 if (ev->child) 163 if (ev->child)
164 cev.child = _efl_composite_lookup(efl_class_get(pd->self), 164 cev.child = _efl_composite_lookup(efl_class_get(pd->self),
165 pd->self, ev->child, ev->index); 165 pd->self, ev->child, ev->index);
166
167 efl_event_callback_call(pd->self, EFL_MODEL_EVENT_CHILD_ADDED, &cev); 166 efl_event_callback_call(pd->self, EFL_MODEL_EVENT_CHILD_ADDED, &cev);
168 167
169 efl_unref(cev.child); 168 efl_unref(cev.child);
@@ -302,6 +301,8 @@ _efl_composite_model_then(Eo *o EINA_UNUSED, void *data, const Eina_Value v)
302 301
303 // Fetch an existing composite model for this model or create a new one if none exist 302 // Fetch an existing composite model for this model or create a new one if none exist
304 composite = _efl_composite_lookup(req->self, req->parent, target, req->start + i); 303 composite = _efl_composite_lookup(req->self, req->parent, target, req->start + i);
304 if (!composite) continue;
305
305 eina_value_array_append(&r, composite); 306 eina_value_array_append(&r, composite);
306 // Dropping this scope reference 307 // Dropping this scope reference
307 efl_unref(composite); 308 efl_unref(composite);