From aba12231451d682969792876e6d66f62c03279d5 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 20 Oct 2016 18:45:12 -0200 Subject: [PATCH] efl_io_copier: always cancel job on destructor. It's already deleted on close(), but that's now optional (close_on_destructor). --- src/lib/ecore/efl_io_copier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore/efl_io_copier.c b/src/lib/ecore/efl_io_copier.c index 54dcc3f..5a1fd79 100644 --- a/src/lib/ecore/efl_io_copier.c +++ b/src/lib/ecore/efl_io_copier.c @@ -684,6 +684,9 @@ _efl_io_copier_efl_object_destructor(Eo *o, Efl_Io_Copier_Data *pd) { _COPIER_DBG(o, pd); + if (pd->job) + efl_future_cancel(pd->job); + if (efl_io_closer_close_on_destructor_get(o) && (!efl_io_closer_closed_get(o))) efl_io_closer_close(o); -- 2.7.4