mirror of
https://github.com/boostorg/thread.git
synced 2026-01-27 07:22:11 +00:00
Set thread cleanup handlers to null when deleting it so that calling on_thread_exit() twice doesn't use an invalid pointer.
[SVN r24228]
This commit is contained in:
@@ -117,7 +117,8 @@
|
||||
}
|
||||
|
||||
//Destroy the exit handlers
|
||||
delete handlers;
|
||||
if (TlsSetValue(key, 0))
|
||||
delete handlers;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user