evas_clip: check for object validity before adding fallback damage rect

this path should not be triggered for objects which are being deleted,
which was the case in all of the referenced bug reportst

fix T4904, T7100, T7421

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8445
This commit is contained in:
Mike Blumenkrantz 2019-03-22 09:50:57 -04:00 committed by Cedric BAIL
parent 0d63743be9
commit e6d8ac512d
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,8 @@ _efl_canvas_object_clipper_unset_common(Evas_Object_Protected_Data *obj, Eina_Bo
if (((clip->cur) && (clip->cur->visible)) &&
(((clip->cur->color.r != 255) || (clip->cur->color.g != 255) ||
(clip->cur->color.b != 255) || (clip->cur->color.a != 255)) ||
(clip->mask->is_mask)))
(clip->mask->is_mask)) &&
efl_alive_get(clip->object))
{
if (clip->layer)
{