zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=98b00ab6ac8c941eefc12ce589d017cc587cd025

commit 98b00ab6ac8c941eefc12ce589d017cc587cd025
Author: Cedric BAIL <cedric.b...@free.fr>
Date:   Thu Apr 25 15:38:20 2019 -0700

    eio: correctly set reference count of cached child object.
    
    Reviewed-by: SangHyeon Jade Lee <sh10233....@samsung.com>
    Differential Revision: https://phab.enlightenment.org/D8793
---
 src/lib/eio/efl_io_model.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c
index 300dac0e21..185af29061 100644
--- a/src/lib/eio/efl_io_model.c
+++ b/src/lib/eio/efl_io_model.c
@@ -956,6 +956,8 @@ _efl_io_model_efl_model_children_slice_get(Eo *obj, 
Efl_Io_Model_Data *pd,
                                      // NOTE: We are assuming here that the 
parent model will outlive all its children
                                      child_data->filter.cb = pd->filter.cb,
                                      child_data->filter.data = 
pd->filter.data);
+        else
+          efl_ref(info->object);
         eina_value_array_append(&array, info->object);
 
         efl_wref_add(info->object, &info->object);

-- 


Reply via email to