macos: fix not cleaning up condition variables

This commit is contained in:
Andrew Kelley 2015-09-10 17:14:16 -07:00
parent f0356597e2
commit b6c0c84294

View file

@ -379,7 +379,7 @@ void soundio_os_cond_destroy(struct SoundIoOsCond *cond) {
#if defined(SOUNDIO_OS_WINDOWS)
DeleteCriticalSection(&cond->default_cs_id);
#elif defined(SOUNDIO_OS_KQUEUE)
// nothing to do
close(cond->kq_id);
#else
if (cond->id_init) {
assert_no_err(pthread_cond_destroy(&cond->id));