diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-15 20:02:55 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-15 20:02:55 +0200 |
commit | 7fb10c11e442135988d9ea0646f6f2b4a5e421f7 (patch) | |
tree | 940efeeb65aec7a275ab44e10a7521d3730978ff /src/threadengines | |
parent | 39d894c54ed106a697d96a2aea90884dfd0a469c (diff) |
Fix thread handle leak in threadengine_win32
Diffstat (limited to 'src/threadengines')
-rw-r--r-- | src/threadengines/threadengine_win32.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index 637a3e010..529e24a29 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -65,6 +65,7 @@ void ThreadData::FreeThread(Thread* thread) { thread->SetExitFlag(); WaitForSingleObject(handle,INFINITE); + CloseHandle(handle); } class ThreadSignalSocket : public BufferedSocket |