From 2f9a65844e64517e129cce3b82f44a5f4f1fc562 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 31 Jul 2018 17:23:46 -0400 Subject: [PATCH] elementary: Check for valid object before calling smart calculate Summary: Small patch fixes an issue where evas_object_smart_calculate was being called with a NULL box. ref T7030 Depends on D6704 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Maniphest Tasks: T7030 Differential Revision: https://phab.enlightenment.org/D6710 --- src/lib/elementary/elm_panel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/elm_panel.c b/src/lib/elementary/elm_panel.c index b85f9880ed..39ea9853dc 100644 --- a/src/lib/elementary/elm_panel.c +++ b/src/lib/elementary/elm_panel.c @@ -60,6 +60,7 @@ _elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd) { Evas_Coord mw = 0, mh = 0; + EINA_SAFETY_ON_FALSE_RETURN(efl_finalized_get(obj)); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); if (sd->delete_me) return;