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
This commit is contained in:
Chris Michael 2018-07-25 14:57:41 -04:00 committed by Chris Michael
parent 843b5177df
commit be176bd307
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}