elementary: Check for valid resize object

Summary:
Fix an issue where elm_slider was passing NULL to eo functions due to
wd->resize_obj being NULL. Discovered via Enlightenment mixer popup
dialog

ref T7030
Depends on D6639

Reviewers: zmike

Reviewed By: zmike

Subscribers: Hermet, bu5hm4n, cedric, #committers

Tags: #efl

Maniphest Tasks: T7030

Differential Revision: https://phab.enlightenment.org/D6640
This commit is contained in:
Chris Michael 2018-07-25 14:57:52 -04:00 committed by Chris Michael
parent be176bd307
commit 124703826f
1 changed files with 2 additions and 0 deletions

View File

@ -1045,6 +1045,8 @@ _elm_slider_efl_ui_format_format_cb_set(Eo *obj, Elm_Slider_Data *sd, void *func
if (sd->format_cb_data && sd->format_free_cb)
sd->format_free_cb(sd->format_cb_data);
if (efl_invalidated_get(obj)) return;
sd->format_cb = func;
sd->format_cb_data = func_data;
sd->format_free_cb = func_free_cb;