summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-04-16 11:24:27 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-16 11:24:29 -0700
commitad6ef480531845b954472a5b4edb1135802ec263 (patch)
tree91f828eb4bd3fdf56471d7d78e525f9c38e1c590
parentb650325b88235be6de2c3490b6a338dac03498c8 (diff)
downloadefl-ad6ef480531845b954472a5b4edb1135802ec263.tar.gz
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>
-rw-r--r--src/lib/eo/eo_base_class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index fefc1060a8..f340197a30 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -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 *