evas: by moving lifecycle management to be handle by the death of the parent, there should be no call to efl_del.

This commit is contained in:
Cedric Bail 2018-04-04 15:36:24 -07:00 committed by Cedric BAIL
parent 53378d6a6b
commit 5ebe5bb62c
1 changed files with 4 additions and 5 deletions

View File

@ -273,14 +273,16 @@ evas_free(Evas *eo_e)
MAGIC_CHECK(eo_e, Evas, MAGIC_EVAS);
return;
MAGIC_CHECK_END();
efl_unref(eo_e);
efl_del(eo_e);
}
EOLIAN static void
_evas_canvas_efl_object_invalidate(Eo *eo_e, Evas_Public_Data *e EINA_UNUSED)
_evas_canvas_efl_object_invalidate(Eo *eo_e, Evas_Public_Data *e)
{
evas_sync(eo_e);
e->gesture_manager = NULL;
efl_invalidate(efl_super(eo_e, MY_CLASS));
}
@ -306,9 +308,6 @@ _evas_canvas_efl_object_destructor(Eo *eo_e, Evas_Public_Data *e)
_evas_post_event_callback_free(eo_e);
_evas_canvas_event_shutdown(eo_e, e);
efl_del(e->gesture_manager);
e->gesture_manager = NULL;
del = EINA_TRUE;
e->walking_list++;
e->cleanup = 1;