efl_js: Use efl_add_ref for saner refcount.

efl_add was messing up the refcount in objects with parents on the JS
side.
This commit is contained in:
Lauro Moura 2017-02-16 18:21:08 -03:00 committed by Felipe Magno de Almeida
parent eb041fb6a0
commit 659edb609a
1 changed files with 1 additions and 1 deletions

View File

@ -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})