efl_ui/layout: only freeze internal layout during delete if it exists

Summary:
if the layout object does not exist here then there is nothing to freeze

@fix
Depends on D8980

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8981
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:26:15 -04:00
parent f4d13d3671
commit 6e77c039a7
1 changed files with 3 additions and 1 deletions

View File

@ -769,7 +769,9 @@ _efl_ui_layout_base_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Layout_Data *sd)
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
elm_layout_freeze(obj);
/* freeze edje object if it exists */
if (wd->resize_obj)
elm_layout_freeze(obj);
EINA_LIST_FREE(sd->subs, sub_d)
{