Commit 3e655227 authored by Pieter Hintjens's avatar Pieter Hintjens Committed by Martin Sustrik

Fixed memory leak with threads on win32

Signed-off-by: 's avatarPieter Hintjens <ph@imatix.com>
parent 85c2a840
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment