diff options
Diffstat (limited to 'src/win32/pthread/pthread.cpp')
-rw-r--r-- | src/win32/pthread/pthread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/pthread/pthread.cpp b/src/win32/pthread/pthread.cpp index dd2310d40..72f1c94e8 100644 --- a/src/win32/pthread/pthread.cpp +++ b/src/win32/pthread/pthread.cpp @@ -53,6 +53,7 @@ int pthread_join(pthread_t thread, void **) { if (WaitForSingleObject(thread, INFINITE) == WAIT_FAILED) return -1; + CloseHandle(thread); return 0; } |