forked from enlightenment/efl
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:
parent
14a6dd6ab0
commit
5fa21a9629
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue