summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-15 20:02:55 +0200
committerattilamolnar <attilamolnar@hush.com>2013-05-15 20:02:55 +0200
commit7fb10c11e442135988d9ea0646f6f2b4a5e421f7 (patch)
tree940efeeb65aec7a275ab44e10a7521d3730978ff
parent39d894c54ed106a697d96a2aea90884dfd0a469c (diff)
Fix thread handle leak in threadengine_win32
-rw-r--r--src/threadengines/threadengine_win32.cpp1
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