summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <devilhorns@comcast.net>2018-07-25 14:57:52 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-25 14:57:52 -0400
commit124703826f24975a3f45ab26e567bf547b9db25b (patch)
tree1a44f5992ac97a1268cf123eed5b14f719ce054a
parentbe176bd3070e2e88341554fb5801ece7b0cbd7d0 (diff)
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
-rw-r--r--src/lib/elementary/elm_slider.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c
index 7b36da532e..0a1e5c3f01 100644
--- a/src/lib/elementary/elm_slider.c
+++ b/src/lib/elementary/elm_slider.c
@@ -1045,6 +1045,8 @@ _elm_slider_efl_ui_format_format_cb_set(Eo *obj, Elm_Slider_Data *sd, void *func
1045 if (sd->format_cb_data && sd->format_free_cb) 1045 if (sd->format_cb_data && sd->format_free_cb)
1046 sd->format_free_cb(sd->format_cb_data); 1046 sd->format_free_cb(sd->format_cb_data);
1047 1047
1048 if (efl_invalidated_get(obj)) return;
1049
1048 sd->format_cb = func; 1050 sd->format_cb = func;
1049 sd->format_cb_data = func_data; 1051 sd->format_cb_data = func_data;
1050 sd->format_free_cb = func_free_cb; 1052 sd->format_free_cb = func_free_cb;