From be176bd3070e2e88341554fb5801ece7b0cbd7d0 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 25 Jul 2018 14:57:41 -0400 Subject: [PATCH] elementary: Check for valid resize object before calling Summary: efl_layout_signal_emit This patch fixes an issue where NULL was passed to efl_layout_signal_emit due to wd->resize_obj being NULL. This was discovered in Enlightenment by clicking on the mixer module and trying to close the popup window ref T7030 Depends on D6638 Reviewers: zmike Reviewed By: zmike Subscribers: Hermet, cedric, #committers Tags: #efl Maniphest Tasks: T7030 Differential Revision: https://phab.enlightenment.org/D6639 --- src/lib/elementary/efl_ui_layout_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/efl_ui_layout_object.c b/src/lib/elementary/efl_ui_layout_object.c index 9dc050fda1..806016bb12 100644 --- a/src/lib/elementary/efl_ui_layout_object.c +++ b/src/lib/elementary/efl_ui_layout_object.c @@ -928,6 +928,7 @@ EOLIAN static void _efl_ui_layout_object_efl_layout_signal_signal_emit(Eo *obj, Efl_Ui_Layout_Object_Data *_pd EINA_UNUSED, const char *emission, const char *source) { // Don't do anything else than call forward here + EINA_SAFETY_ON_TRUE_RETURN(efl_invalidated_get(obj)); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); efl_layout_signal_emit(wd->resize_obj, emission, source); }