eo : Add null check

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

Test Plan: N/A

Reviewers: woohyun, kimcinoo, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5869

Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
junsu choi 2018-04-16 11:24:27 -07:00 committed by Cedric BAIL
parent b650325b88
commit ad6ef48053
1 changed files with 2 additions and 1 deletions

View File

@ -2186,8 +2186,9 @@ EAPI void
___efl_auto_unref_set(Eo *obj_id, Eina_Bool enable)
{
// Write-only property
EO_OBJ_POINTER(obj_id, obj);
EO_OBJ_POINTER_RETURN(obj_id, obj);
obj->auto_unref = enable ? 1 : 0;
EO_OBJ_DONE(obj_id);
}
EOLIAN static Eo *