evas: add safety check code to avoid crash

Test Plan: evas_smart_objects_calculate(NULL);

Reviewers: zmike, Hermet, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6805
This commit is contained in:
Yeongjong Lee 2018-08-09 11:19:46 -04:00 committed by Chris Michael
parent ecbcc26a5f
commit 206d40e331
1 changed files with 1 additions and 0 deletions

View File

@ -1905,6 +1905,7 @@ _evas_canvas_efl_canvas_scene_smart_objects_calculate(Eo *eo_e, Evas_Public_Data
EAPI void
evas_smart_objects_calculate(Eo *eo_e)
{
EINA_SAFETY_ON_NULL_RETURN(eo_e);
evas_call_smarts_calculate(eo_e);
}