evas: add null check
Summary: this commit add null check. In EVAS_OBJECT_DATA_SAFE_GET, if eo_obj is null, obj can also be null. and In _efl_canvas_output_async_block() can return null. Test Plan: N/A Reviewers: woohyun, kimcinoo, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5870 Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
0f06f222ba
commit
982ad90f57
|
@ -189,6 +189,7 @@ _animation_intercept_hide(void *data, Evas_Object *eo_obj)
|
|||
{
|
||||
Event_Animation *event_anim = data;
|
||||
Evas_Object_Protected_Data *obj = EVAS_OBJECT_DATA_SAFE_GET(eo_obj);
|
||||
if (!obj) return;
|
||||
|
||||
if (event_anim->anim && obj->anim_player &&
|
||||
(event_anim->anim != efl_animation_player_animation_get(obj->anim_player)))
|
||||
|
|
|
@ -53,6 +53,7 @@ efl_canvas_output_add(Evas *canvas)
|
|||
r->changed = EINA_TRUE;
|
||||
|
||||
e = _efl_canvas_output_async_block(r);
|
||||
if (!e) return NULL;
|
||||
// Track this output in Evas
|
||||
e->outputs = eina_list_append(e->outputs, r);
|
||||
|
||||
|
|
Loading…
Reference in New Issue