diff options
Diffstat (limited to 'libusb/os/threads_windows.c')
-rw-r--r-- | libusb/os/threads_windows.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libusb/os/threads_windows.c b/libusb/os/threads_windows.c index aa05edc..db83a4d 100644 --- a/libusb/os/threads_windows.c +++ b/libusb/os/threads_windows.c @@ -97,6 +97,7 @@ int usbi_cond_destroy(usbi_cond_t *cond) { if(!list_empty(&cond->waiters)) return ((errno=EBUSY )); // (!see above!) list_for_each_entry(pos, &cond->not_waiting, list, struct usbi_cond_perthread) { free(prev_pos); + CloseHandle(pos->event); list_del(&pos->list); prev_pos = pos; } |