Merge pull request #489 from pijyoi/master

win32: fix Event handle leak
This commit is contained in:
Pieter Hintjens 2012-12-27 05:46:20 -08:00
commit 8dda553ac4

View File

@ -326,6 +326,10 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
brc = SetEvent (sync);
win_assert (brc != 0);
// Release the kernel object
brc = CloseHandle (sync);
win_assert (brc != 0);
return 0;
#elif defined ZMQ_HAVE_OPENVMS