From 7fb10c11e442135988d9ea0646f6f2b4a5e421f7 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 15 May 2013 20:02:55 +0200 Subject: Fix thread handle leak in threadengine_win32 --- src/threadengines/threadengine_win32.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3