summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-09-21 16:54:51 +0900
committerHermet Park <hermetpark@gmail.com>2018-09-21 16:54:52 +0900
commit9d197f38bbe2f82ede99a9c760e1afb64ea46457 (patch)
treeb9eb83298581a1fefd7db2cb9f65b59ae9de18a7 /src/lib/eo/eo_base_class.c
parent2f9c23a87e5598554b3e4b3752a517d260d893a4 (diff)
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
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index b2de426..928811a 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -134,7 +134,7 @@ _efl_object_invalidate(Eo *obj_id, Efl_Object_Data *pd)
134{ 134{
135 _efl_pending_futures_clear(pd); 135 _efl_pending_futures_clear(pd);
136 136
137 EO_OBJ_POINTER(obj_id, obj); 137 EO_OBJ_POINTER_RETURN(obj_id, obj);
138 138
139 // Finally invalidate itself if it wasn't done already 139 // Finally invalidate itself if it wasn't done already
140 // I am not sure this is a good idea, but it force the 140 // I am not sure this is a good idea, but it force the