Fixed memory leak with threads on win32

Signed-off-by: Pieter Hintjens <ph@imatix.com>
This commit is contained in:
Pieter Hintjens 2011-04-02 09:22:41 +02:00 committed by Martin Sustrik
parent 85c2a84036
commit 3e655227bd

View File

@ -47,6 +47,8 @@ void zmq::thread_t::stop ()
{
DWORD rc = WaitForSingleObject (descriptor, INFINITE);
win_assert (rc != WAIT_FAILED);
BOOL rc2 = CloseHandle (descriptor);
win_assert (rc != 0);
}
#else