Commit 6f22b36e authored by morlad (iLeitgeb)'s avatar morlad (iLeitgeb)

Fix memory leak (macOS)

parent 53eed5b5
...@@ -25224,6 +25224,8 @@ static ma_result ma_context_get_device_info__coreaudio(ma_context* pContext, ma_ ...@@ -25224,6 +25224,8 @@ static ma_result ma_context_get_device_info__coreaudio(ma_context* pContext, ma_
} }
} }
ma_free(pSampleRateRanges, &pContext->allocationCallbacks);
if (pDeviceInfo->nativeDataFormatCount >= ma_countof(pDeviceInfo->nativeDataFormats)) { if (pDeviceInfo->nativeDataFormatCount >= ma_countof(pDeviceInfo->nativeDataFormats)) {
break; /* No more room for any more formats. */ break; /* No more room for any more formats. */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment