mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 23:15:32 +00:00
macos: fix not cleaning up condition variables
This commit is contained in:
parent
f0356597e2
commit
b6c0c84294
|
@ -379,7 +379,7 @@ void soundio_os_cond_destroy(struct SoundIoOsCond *cond) {
|
||||||
#if defined(SOUNDIO_OS_WINDOWS)
|
#if defined(SOUNDIO_OS_WINDOWS)
|
||||||
DeleteCriticalSection(&cond->default_cs_id);
|
DeleteCriticalSection(&cond->default_cs_id);
|
||||||
#elif defined(SOUNDIO_OS_KQUEUE)
|
#elif defined(SOUNDIO_OS_KQUEUE)
|
||||||
// nothing to do
|
close(cond->kq_id);
|
||||||
#else
|
#else
|
||||||
if (cond->id_init) {
|
if (cond->id_init) {
|
||||||
assert_no_err(pthread_cond_destroy(&cond->id));
|
assert_no_err(pthread_cond_destroy(&cond->id));
|
||||||
|
|
Loading…
Reference in a new issue