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
This commit is contained in:
Shinwoo Kim 2019-09-25 06:53:53 -04:00 committed by Mike Blumenkrantz
parent 14a6dd6ab0
commit 5fa21a9629
1 changed files with 2 additions and 0 deletions

View File

@ -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)