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:
Alastair Poole 2018-06-12 15:19:12 +01:00
parent f4851d311f
commit 8e64746a44
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}