eo: Add null check

Summary:
This commit add null check on _efl_object_invalidate
In EO_OBJ_POINTER, if obj_id is null, obj can also be null.

Test Plan: N/A

Reviewers: cedric, zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7068
This commit is contained in:
junsu choi 2018-09-21 16:54:51 +09:00 committed by Hermet Park
parent 2f9c23a87e
commit 9d197f38bb
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ _efl_object_invalidate(Eo *obj_id, Efl_Object_Data *pd)
{
_efl_pending_futures_clear(pd);
EO_OBJ_POINTER(obj_id, obj);
EO_OBJ_POINTER_RETURN(obj_id, obj);
// Finally invalidate itself if it wasn't done already
// I am not sure this is a good idea, but it force the