mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Merge pull request #278 from morlad/fix-memory-leak-1
Fix memory leak (macOS)
This commit is contained in:
@@ -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. */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user