forked from enlightenment/efl
ecore_evas: fix crash on free of smart data.
pd is NULL here, adds a check before attempt to read from pd. @fix T6974
This commit is contained in:
parent
f4851d311f
commit
8e64746a44
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue