2
0
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:
Michael Glassford
2004-08-01 12:07:11 +00:00
parent b62503f274
commit cebaf27ee8

View File

@@ -117,7 +117,8 @@
}
//Destroy the exit handlers
delete handlers;
if (TlsSetValue(key, 0))
delete handlers;
}
}