summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-02-16 18:21:08 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-02-22 18:56:30 -0300
commit659edb609abc91ca111cef4c2ac926dc83580417 (patch)
tree1de21354b33079215d5121f288363657932081b3 /src/bindings
parenteb041fb6a06296cd7232c53c32fcc81c8c01ec3f (diff)
efl_js: Use efl_add_ref for saner refcount.
efl_add was messing up the refcount in objects with parents on the JS side.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/js/eo_js/eo_js_constructor.hh2
1 files changed, 1 insertions, 1 deletions
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
106 { 106 {
107 Eo* parent = eina::js::get_value_from_javascript 107 Eo* parent = eina::js::get_value_from_javascript
108 (args[0], args.GetIsolate(), "", eina::js::value_tag<Eo*>()); 108 (args[0], args.GetIsolate(), "", eina::js::value_tag<Eo*>());
109 Eo* eo = efl_add 109 Eo* eo = efl_add_ref
110 (klass 110 (klass
111 , parent 111 , parent
112 , eina::_mpl::for_each(constructors, call{efl_added, &current_index, &args}) 112 , eina::_mpl::for_each(constructors, call{efl_added, &current_index, &args})