summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwonguk.jeong <wonguk.jeong@samsung.com>2014-05-26 15:25:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-26 15:25:28 +0900
commit468b4cfeced34776db3d082b07b64f94040592b3 (patch)
tree6c9dc26208a488998b99e504d2c6853ae42a15e8
parent03d4c6be8cfcaf55a1a805d8dbb3c619cd919c77 (diff)
test_progressbar: delete timer when progressbar is destroyed.
Summary: elementary_test -> progressbar/progressbar2 -> press start -> close window -> annoying message is shown due to API invoking for already free'd progressbar Test Plan: elementary_test -> progressbar/progressbar2 -> press start -> close progressbar/progressbar2 window Reviewers: raster, seoz CC: seoz Differential Revision: https://phab.enlightenment.org/D888
-rw-r--r--src/bin/test_progressbar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/test_progressbar.c b/src/bin/test_progressbar.c
index e89c9ea90..2089db171 100644
--- a/src/bin/test_progressbar.c
+++ b/src/bin/test_progressbar.c
@@ -82,6 +82,7 @@ _progressbar_destroy_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUS
82{ 82{
83 Progressbar_Data *pd = data; 83 Progressbar_Data *pd = data;
84 84
85 if (pd->timer) ecore_timer_del(pd->timer);
85 if (pd) free(pd); 86 if (pd) free(pd);
86 my_progressbar_test_stop(NULL, NULL, NULL); 87 my_progressbar_test_stop(NULL, NULL, NULL);
87 evas_object_del(obj); 88 evas_object_del(obj);