evas main: check for OOM when calloc().

This commit is contained in:
Hermet Park 2019-02-18 14:35:27 +09:00
parent dc56376990
commit 3967e1f354
1 changed files with 1 additions and 0 deletions

View File

@ -2674,6 +2674,7 @@ _efl_canvas_object_event_animation_set(Eo *eo_obj,
if (!animation) return;
event_anim = calloc(1, sizeof(Event_Animation));
EINA_SAFETY_ON_NULL_RETURN(event_anim);
//Set callback for Hide event
if (desc == EFL_GFX_ENTITY_EVENT_HIDE)