From 9e33e83a4a0f9e781bf499937c6629eec3e1e067 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 31 May 2021 15:02:46 +0900 Subject: [PATCH] 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 --- src/lib/evas/include/evas_inline.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4