From 8e64746a44d94d54eb25c4a20837706130172e21 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Tue, 12 Jun 2018 15:19:12 +0100 Subject: [PATCH] ecore_evas: fix crash on free of smart data. pd is NULL here, adds a check before attempt to read from pd. @fix T6974 --- 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 74ed8bbd01..b3f1ae688a 100644 --- a/src/lib/evas/include/evas_inline.x +++ b/src/lib/evas/include/evas_inline.x @@ -359,7 +359,7 @@ static inline void _evas_wrap_del(Evas_Object **eo, Evas_Object_Protected_Data *pd) { if (!*eo) return ; - if (pd->legacy.ctor) evas_object_del(*eo); + if (pd && pd->legacy.ctor) evas_object_del(*eo); else efl_del(*eo); *eo = NULL; }