zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=12778084d7dd42c5d041c8de24bb08b571fe0541

commit 12778084d7dd42c5d041c8de24bb08b571fe0541
Author: Cedric BAIL <[email protected]>
Date:   Sat Feb 23 08:58:07 2019 -0500

    efl: improve Efl.Container_Model test to have proper lifecycle.
    
    Summary: Depends on D7865
    
    Reviewers: felipealmeida, segfaultxavi, SanghyeonLee, zmike, bu5hm4n
    
    Reviewed By: segfaultxavi
    
    Subscribers: #reviewers, #committers
    
    Tags: #efl
    
    Maniphest Tasks: T7528
    
    Differential Revision: https://phab.enlightenment.org/D7866
---
 src/tests/efl/efl_test_container_model.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tests/efl/efl_test_container_model.c 
b/src/tests/efl/efl_test_container_model.c
index 6bf2f40309..e311ea20aa 100644
--- a/src/tests/efl/efl_test_container_model.c
+++ b/src/tests/efl/efl_test_container_model.c
@@ -89,7 +89,7 @@ EFL_START_TEST(efl_test_container_model_values)
         cmp_str[i] = strdup(base_str[i]);
      }
 
-   model = efl_add_ref(EFL_CONTAINER_MODEL_CLASS, NULL);
+   model = efl_add(EFL_CONTAINER_MODEL_CLASS, efl_main_loop_get());
 
    efl_container_model_child_property_add(model, "test_p_int", 
EINA_VALUE_TYPE_INT,
                                           
eina_carray_iterator_new((void**)cmp_int));
@@ -110,6 +110,8 @@ EFL_START_TEST(efl_test_container_model_values)
    eina_future_then(future, _children_slice_future_then, NULL, NULL);
 
    ecore_main_loop_begin();
+
+   efl_del(model);
 }
 EFL_END_TEST
 

-- 


Reply via email to