From f1b38ef0d97c38f222f5a49c26c2a482df4f6631 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 2 Jul 2018 23:10:26 +1000 Subject: [PATCH] Core Audio: Clean up. --- mini_al.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mini_al.h b/mini_al.h index 45130ccd..2b09a0d9 100644 --- a/mini_al.h +++ b/mini_al.h @@ -13788,6 +13788,10 @@ mal_result mal_context_get_device_info__coreaudio(mal_context* pContext, mal_dev return mal_result_from_OSStatus(status); } + ((mal_AudioComponentInstanceDispose_proc)pContext->coreaudio.AudioComponentInstanceDispose)(audioUnit); + audioUnit = NULL; + + pDeviceInfo->minChannels = bestFormat.mChannelsPerFrame; pDeviceInfo->maxChannels = bestFormat.mChannelsPerFrame;