scroller: add missing efl_content_unset

When efl_content_unset(scroller) is called, efl_content_unset for Efl.Ui.Pan class should be called also.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10906
This commit is contained in:
Hosang Kim 2019-12-19 06:14:15 +00:00 committed by Marcel Hollerbach
parent 1d49102bbe
commit ed7fb7ae27
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ _efl_ui_scroller_efl_content_content_unset(Eo *obj EINA_UNUSED, Efl_Ui_Scroller_
{
Efl_Gfx_Entity *old_content = pd->content;
efl_content_unset(pd->pan_obj);
efl_event_callback_del(pd->content, EFL_EVENT_INVALIDATE, _efl_ui_scroller_content_del_cb, obj);
pd->content = NULL;
efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, NULL);