From: Hermet Park Date: Mon, 31 May 2021 06:02:46 +0000 (+0900) Subject: evas canvas: +null check for safety. X-Git-Tag: accepted/tizen/unified/20210602.122542~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F259026%2F1;p=platform%2Fupstream%2Fefl.git evas canvas: +null check for safety. Prevent any corrupted objects in efl side... It rarely happens that freed objects are accessed again with null properties... Change-Id: If026d1ca29a1b9002b4f9c0c073cb4e455f55515 --- diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x index 9905d49..27b306e 100644 --- a/src/lib/evas/include/evas_inline.x +++ b/src/lib/evas/include/evas_inline.x @@ -259,7 +259,7 @@ evas_object_is_active(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj) need to be smarter and only do that when really needed. */ if (obj->proxy->proxies && obj->changed) return 1; - if (obj->mask->is_mask && obj->clip.clipees) + if (obj->mask && obj->mask->is_mask && obj->clip.clipees) return 1; return 0; }