zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5fa21a962966c46f636640a210a96e8e98e69e64

commit 5fa21a962966c46f636640a210a96e8e98e69e64
Author: Shinwoo Kim <cinoo....@samsung.com>
Date:   Wed Sep 25 06:53:53 2019 -0400

    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
---
 src/lib/evas/canvas/evas_callbacks.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/evas/canvas/evas_callbacks.c 
b/src/lib/evas/canvas/evas_callbacks.c
index cadd0212f0..35ef78aef2 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)
 void
 evas_object_callbacks_finalized(Eo *eo_obj EINA_UNUSED, 
Evas_Object_Protected_Data *obj)
 {
+   EINA_SAFETY_ON_NULL_RETURN(obj);
+
    if (obj->animator_ref > 0)
      {
        if (obj->layer && obj->layer->evas)

-- 


Reply via email to