forked from enlightenment/efl
evas: do not unref if there is no clipper
check if there is a clipper set before accessing it. This fixes crashes of the drm engine.
This commit is contained in:
parent
9f2055de34
commit
aadea46b35
|
@ -1045,9 +1045,10 @@ evas_object_smart_changed_get(Evas_Object *eo_obj)
|
|||
return EINA_FALSE;
|
||||
|
||||
//b. Object clipper visibility
|
||||
if (!(obj->prev->clipper->cur->visible && obj->cur->clipper->cur->visible) ||
|
||||
if ((obj->prev->clipper && obj->cur->clipper) &&
|
||||
(!(obj->prev->clipper->cur->visible && obj->cur->clipper->cur->visible) ||
|
||||
((obj->prev->clipper->cur->color.a == 0) &&
|
||||
(obj->prev->clipper->prev->color.a == 0)))
|
||||
(obj->prev->clipper->prev->color.a == 0))))
|
||||
return EINA_FALSE;
|
||||
|
||||
if (!obj->clip.clipees)
|
||||
|
|
Loading…
Reference in New Issue