felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=659edb609abc91ca111cef4c2ac926dc83580417

commit 659edb609abc91ca111cef4c2ac926dc83580417
Author: Lauro Moura <lauromo...@expertisesolutions.com.br>
Date:   Thu Feb 16 18:21:08 2017 -0300

    efl_js: Use efl_add_ref for saner refcount.
    
    efl_add was messing up the refcount in objects with parents on the JS
    side.
---
 src/bindings/js/eo_js/eo_js_constructor.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bindings/js/eo_js/eo_js_constructor.hh 
b/src/bindings/js/eo_js/eo_js_constructor.hh
index e0c0f2f..202ff56 100644
--- a/src/bindings/js/eo_js/eo_js_constructor.hh
+++ b/src/bindings/js/eo_js/eo_js_constructor.hh
@@ -106,7 +106,7 @@ struct constructor_caller
           {
             Eo* parent = eina::js::get_value_from_javascript
               (args[0], args.GetIsolate(), "", eina::js::value_tag<Eo*>());
-            Eo* eo = efl_add
+            Eo* eo = efl_add_ref
               (klass
                , parent
                , eina::_mpl::for_each(constructors, call{efl_added, 
&current_index, &args})

-- 


Reply via email to