diff options
author | Pieter Hintjens <ph@imatix.com> | 2011-04-02 09:22:41 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-04-02 09:22:41 +0200 |
commit | 3e655227bd30d9845b2a0d8b877abe26c5524a3a (patch) | |
tree | f3d5ae6a35f89d613fecf03afb666d29c71c9492 | |
parent | 85c2a84036675d40af47b57c410309da04ef742b (diff) |
Fixed memory leak with threads on win32
Signed-off-by: Pieter Hintjens <ph@imatix.com>
-rw-r--r-- | src/thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread.cpp b/src/thread.cpp index 12a72e2..f1fd519 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -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 |