From b6c0c84294d220330af83ee843e02a852f0ad2b7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 10 Sep 2015 17:14:16 -0700 Subject: [PATCH] macos: fix not cleaning up condition variables --- src/os.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.cpp b/src/os.cpp index 5e052fa..62dca77 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -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));