efl_ui/layout: do not trigger sizing eval on hint change if object is dead
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 29 May 2019 13:25:24 +0000 (09:25 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 3 Jun 2019 07:04:03 +0000 (16:04 +0900)
Summary:
this fixes a huge number of errors during object deletion

@fix
Depends on D8979

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8987

src/lib/elementary/efl_ui_layout.c

index 059f1da..95f9be7 100644 (file)
@@ -156,6 +156,7 @@ _on_sub_object_size_hint_change(void *data,
                                 Evas_Object *obj EINA_UNUSED,
                                 void *event_info EINA_UNUSED)
 {
+   if (!efl_alive_get(data)) return;
    ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
    elm_layout_sizing_eval(data);
 }