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:
Marcel Hollerbach 2018-05-29 12:24:36 -04:00 committed by Mike Blumenkrantz
parent dda7038019
commit 23aab73c2f
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ _evas_canvas_efl_object_invalidate(Eo *eo_e, Evas_Public_Data *e)
{
Forced_Death force = {
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
};