Close the handle of the thread in case of joining thread.

This commit is contained in:
Patrick Pelissier committed 2018-04-22 19:30:24 +02:00
1 parent 15566b4b65
commit 1c18133603
1 file changed
+1
+1
View File
@@ -204,6 +204,7 @@ static inline void m_thread_join(m_thread_t t)
{
DWORD dwWaitResult = WaitForSingleObject(*t, INFINITE);
assert (dwWaitResult == WAIT_OBJECT_0);
CloseHandle(*t);
}