summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-01-15 17:41:27 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-01-15 17:45:24 +0530
commitecca117da466be2d0b80b50a879ac41082ce15aa (patch)
treed1054c58efc2c45c46a0e031e6f874a1141f2d30
parent5cb356bfecd93dfc377da53cdd8bf14fa1e1106c (diff)
slider: fix segfault in case of obj is deleted before wheel timeout timer expires
Issue: 1. elementary_test -> slider 2. move mousewheel on slider and popup gets shown. 3. close the slider window very fast or increase the wheel_timeout to 4 seconds 4. observe crash
-rw-r--r--src/lib/elm_slider.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index 6db74da2b..b445b5f55 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -930,6 +930,7 @@ _elm_slider_evas_object_smart_del(Eo *obj, Elm_Slider_Data *sd)
930 eina_stringshare_del(sd->indicator); 930 eina_stringshare_del(sd->indicator);
931 eina_stringshare_del(sd->units); 931 eina_stringshare_del(sd->units);
932 ecore_timer_del(sd->delay); 932 ecore_timer_del(sd->delay);
933 ecore_timer_del(sd->wheel_indicator_timer);
933 evas_object_del(sd->popup); 934 evas_object_del(sd->popup);
934 935
935 eo_do_super(obj, MY_CLASS, evas_obj_smart_del()); 936 eo_do_super(obj, MY_CLASS, evas_obj_smart_del());