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)
downloadelementary-468b4cfeced34776db3d082b07b64f94040592b3.tar.gz
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
{
Progressbar_Data *pd = data;
+ if (pd->timer) ecore_timer_del(pd->timer);
if (pd) free(pd);
my_progressbar_test_stop(NULL, NULL, NULL);
evas_object_del(obj);