summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-04-25 15:38:20 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-05-09 09:33:25 -0700
commitc559bdf8094e268879c60824a07ad8eab8cba1b3 (patch)
treeafdf5fa1cdc4f1634d5901666e06379b3af59369 /src/lib/eio
parent6312cafe204d32ab7b374bbdecd407846e8a50fb (diff)
eio: correctly set reference count of cached child object.
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8793
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/efl_io_model.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c
index f5d4664..87d219c 100644
--- a/src/lib/eio/efl_io_model.c
+++ b/src/lib/eio/efl_io_model.c
@@ -948,6 +948,8 @@ _efl_io_model_efl_model_children_slice_get(Eo *obj, Efl_Io_Model_Data *pd,
948 // NOTE: We are assuming here that the parent model will outlive all its children 948 // NOTE: We are assuming here that the parent model will outlive all its children
949 child_data->filter.cb = pd->filter.cb, 949 child_data->filter.cb = pd->filter.cb,
950 child_data->filter.data = pd->filter.data); 950 child_data->filter.data = pd->filter.data);
951 else
952 efl_ref(info->object);
951 eina_value_array_append(&array, info->object); 953 eina_value_array_append(&array, info->object);
952 954
953 efl_wref_add(info->object, &info->object); 955 efl_wref_add(info->object, &info->object);