forked from enlightenment/efl
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:
parent
eb041fb6a0
commit
659edb609a
|
@ -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, ¤t_index, &args})
|
||||
|
|
Loading…
Reference in New Issue