From 364844231ddc161e25eb52aed5f0b057378f4caa Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 23 Dec 2025 19:04:53 +1000 Subject: [PATCH] Fix an bug with error recovery when failing to initialize a decoder. Public issue https://github.com/mackron/miniaudio/issues/1080 --- miniaudio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index fa7a190b..2d75a29d 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -66528,7 +66528,7 @@ MA_API ma_result ma_decoder_init_memory(const void* pData, size_t dataSize, cons due to an out of memory error. We're going to abort with an error here and not try to recover. */ if (pDecoder->pBackendVTable != NULL && pDecoder->pBackendVTable->onUninit != NULL) { - pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, &pDecoder->pBackend, &pDecoder->allocationCallbacks); + pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, pDecoder->pBackend, &pDecoder->allocationCallbacks); } return result; @@ -67155,7 +67155,7 @@ MA_API ma_result ma_decoder_init_file(const char* pFilePath, const ma_decoder_co due to an out of memory error. We're going to abort with an error here and not try to recover. */ if (pDecoder->pBackendVTable != NULL && pDecoder->pBackendVTable->onUninit != NULL) { - pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, &pDecoder->pBackend, &pDecoder->allocationCallbacks); + pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, pDecoder->pBackend, &pDecoder->allocationCallbacks); } return result; @@ -67305,7 +67305,7 @@ MA_API ma_result ma_decoder_init_file_w(const wchar_t* pFilePath, const ma_decod due to an out of memory error. We're going to abort with an error here and not try to recover. */ if (pDecoder->pBackendVTable != NULL && pDecoder->pBackendVTable->onUninit != NULL) { - pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, &pDecoder->pBackend, &pDecoder->allocationCallbacks); + pDecoder->pBackendVTable->onUninit(pDecoder->pBackendUserData, pDecoder->pBackend, &pDecoder->allocationCallbacks); } return result;