evas: be less error prone
Summary: Dont spin infinitly when the refcount accidently is already < 0. Depends on D6225 Reviewers: zmike, cedric, stefan_schmidt, #committers Reviewed By: zmike, #committers Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6226
This commit is contained in:
parent
dda7038019
commit
23aab73c2f
|
@ -378,7 +378,7 @@ _evas_canvas_efl_object_invalidate(Eo *eo_e, Evas_Public_Data *e)
|
||||||
{
|
{
|
||||||
Forced_Death force = {
|
Forced_Death force = {
|
||||||
efl_invalidated_get(obj),
|
efl_invalidated_get(obj),
|
||||||
efl_parent_get(obj) ? (efl_ref_count(obj) == 1) : (efl_ref_count(obj) == 0),
|
efl_parent_get(obj) ? (efl_ref_count(obj) <= 1) : (efl_ref_count(obj) <= 0),
|
||||||
EINA_FALSE
|
EINA_FALSE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue