forked from enlightenment/efl
eo: move wref set to NULL to append after last event.
Making wref disapear before the last event require additional work to use them during the FREE event. As I think we should introduce a wref that disapear after the invalidate state, it makes sense to move that to a later stage. Especially because their is no specific event related to them being set to NULL.
This commit is contained in:
parent
4a3b0e7f25
commit
b1954ce1e7
|
@ -2179,8 +2179,6 @@ composite_obj_back:
|
|||
if (pd->parent) goto err_parent;
|
||||
err_parent_back:
|
||||
|
||||
_wref_destruct(pd);
|
||||
|
||||
// this isn't 100% correct, as the object is still "slightly" alive at this
|
||||
// point (so efl_destructed_is() returns false), but triggering the
|
||||
// "destruct" event here is the simplest, safest solution.
|
||||
|
@ -2191,6 +2189,8 @@ err_parent_back:
|
|||
_eo_generic_data_del_all(obj, pd);
|
||||
_eo_callback_remove_all(pd);
|
||||
|
||||
_wref_destruct(pd);
|
||||
|
||||
ext = pd->ext;
|
||||
// it is rather likely we dont have any extension section for most objects
|
||||
// so return immediately here to avoid pulling in more instructions to
|
||||
|
|
Loading…
Reference in New Issue