diff options
author | Cedric Bail <cedric@osg.samsung.com> | 2016-07-15 17:00:33 -0700 |
---|---|---|
committer | Cedric Bail <cedric@osg.samsung.com> | 2016-07-15 17:07:49 -0700 |
commit | bf369ba66197a62921124bfa2e5d22b1945bfaf3 (patch) | |
tree | 31f6fd7970d91d85e6d42bb245dd3daa5e69713c /src | |
parent | 73bb6d244f0208cbd0e25f0075548cb2e9041e15 (diff) |
eio: cleanup thread pointer on thread finish.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/eio/eio_main.c | 1 | ||||
-rw-r--r-- | src/lib/eio/eio_single.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eio/eio_main.c b/src/lib/eio/eio_main.c index de050f2a2f..7f11a08d85 100644 --- a/src/lib/eio/eio_main.c +++ b/src/lib/eio/eio_main.c | |||
@@ -260,6 +260,7 @@ void | |||
260 | eio_file_unregister(Eio_File *common) | 260 | eio_file_unregister(Eio_File *common) |
261 | { | 261 | { |
262 | tracked_thread = eina_list_remove(tracked_thread, common); | 262 | tracked_thread = eina_list_remove(tracked_thread, common); |
263 | common->thread = NULL; | ||
263 | } | 264 | } |
264 | 265 | ||
265 | /** | 266 | /** |
diff --git a/src/lib/eio/eio_single.c b/src/lib/eio/eio_single.c index f47c18310f..c7841b1a96 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) | |||
310 | { | 310 | { |
311 | if (common->error_cb) | 311 | if (common->error_cb) |
312 | common->error_cb((void*) common->data, common, common->error); | 312 | common->error_cb((void*) common->data, common, common->error); |
313 | common->thread = NULL; | ||
313 | } | 314 | } |
314 | 315 | ||
315 | void | 316 | void |