Edje smart: Add NULL safety

This case actually happens with E. It's invalid but still happening,
and because Eo doesn't actually check the parent (or its type) fully,
an invalid, non-NULL object was returned.

See T2336 (this is not fixing the root cause!).
This commit is contained in:
Jean-Philippe Andre 2015-04-22 10:51:25 +09:00
parent 39e380f754
commit 4ba0227bf4
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ EAPI Evas_Object *
edje_object_add(Evas *evas)
{
Evas_Object *e;
EINA_SAFETY_ON_NULL_RETURN_VAL(evas, NULL);
e = eo_add(MY_CLASS, evas);
return e;
}