forked from enlightenment/efl
evas main: check for OOM when calloc().
This commit is contained in:
parent
dc56376990
commit
3967e1f354
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue