evas main: check for OOM when calloc(). 06/200006/2
authorHermet Park <hermetpark@gmail.com>
Mon, 18 Feb 2019 05:35:27 +0000 (14:35 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 18 Feb 2019 06:39:46 +0000 (06:39 +0000)
Change-Id: I091396e3dea3a48c0f3c2ff3460b2a1a1a2868db

src/lib/evas/canvas/evas_object_main.c

index 8f218fa..faa5c1e 100644 (file)
@@ -2675,6 +2675,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)