From 659edb609abc91ca111cef4c2ac926dc83580417 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Thu, 16 Feb 2017 18:21:08 -0300 Subject: [PATCH] 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 e0c0f2f681..202ff561e4 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 = efl_add + Eo* eo = efl_add_ref (klass , parent , eina::_mpl::for_each(constructors, call{efl_added, ¤t_index, &args})