forked from enlightenment/efl
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
This commit is contained in:
parent
283140a639
commit
c3c0c7abc3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue