Page MenuHomePhabricator

eo: restore refcounting when needed
AbandonedPublic

Authored by bu5hm4n on Jun 5 2018, 5:25 AM.

Details

Reviewers
None
Summary

Following usecase:
call efl_del in a event handler from EFL_EVENT_NOREF. What then happens
is that efl_unref happens while unref_compesate is EINA_TRUE.
This means that _efl_unref is not called. (The unref to the _efl_ref call from efl_ref).
however, in the call to efl_unref where EFL_EVENT_NOREF is called,
_efl_unref is also not called because user_refcount is already 0
before, so the dec leads to a negative value.
Depends on D6244

Diff Detail

Repository
rEFL core/efl
Branch
master
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 6407
bu5hm4n created this revision.Jun 5 2018, 5:25 AM
bu5hm4n requested review of this revision.Jun 5 2018, 5:25 AM
bu5hm4n added a child revision: D6246: eo: _efl_unref correctly.
bu5hm4n abandoned this revision.Jun 5 2018, 5:47 AM

Not needed anymore, D6246 is fixing this.