summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2019-09-25 06:53:53 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-25 06:53:53 -0400
commit5fa21a962966c46f636640a210a96e8e98e69e64 (patch)
treee54f38cefa2349898f9832484c6882b9066dc6b0
parent14a6dd6ab0e5ef077866b9d2ac4cd4b94e4a8934 (diff)
evas_callbacks: check if obj is NULL before using it
Summary: evas_object_callbacks_finalized could take NULL obj because _efl_canvas_object_efl_object_finalize could call it with NULL obj. Reviewers: bu5hm4n, jsuya, Hermet Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10141
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index cadd021..35ef78a 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -805,6 +805,8 @@ _animator_repeater(void *data, const Efl_Event *event)
805void 805void
806evas_object_callbacks_finalized(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj) 806evas_object_callbacks_finalized(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
807{ 807{
808 EINA_SAFETY_ON_NULL_RETURN(obj);
809
808 if (obj->animator_ref > 0) 810 if (obj->animator_ref > 0)
809 { 811 {
810 if (obj->layer && obj->layer->evas) 812 if (obj->layer && obj->layer->evas)