cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bf369ba66197a62921124bfa2e5d22b1945bfaf3

commit bf369ba66197a62921124bfa2e5d22b1945bfaf3
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Fri Jul 15 17:00:33 2016 -0700

    eio: cleanup thread pointer on thread finish.
---
 src/lib/eio/eio_main.c   | 1 +
 src/lib/eio/eio_single.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/lib/eio/eio_main.c b/src/lib/eio/eio_main.c
index de050f2..7f11a08 100644
--- a/src/lib/eio/eio_main.c
+++ b/src/lib/eio/eio_main.c
@@ -260,6 +260,7 @@ void
 eio_file_unregister(Eio_File *common)
 {
    tracked_thread = eina_list_remove(tracked_thread, common);
+   common->thread = NULL;
 }
 
 /**
diff --git a/src/lib/eio/eio_single.c b/src/lib/eio/eio_single.c
index f47c183..c7841b1 100644
--- a/src/lib/eio/eio_single.c
+++ b/src/lib/eio/eio_single.c
@@ -310,6 +310,7 @@ eio_file_error(Eio_File *common)
 {
    if (common->error_cb)
      common->error_cb((void*) common->data, common, common->error);
+   common->thread = NULL;
 }
 
 void

-- 


Reply via email to