Commit 8036bcb6 authored by David Reid's avatar David Reid

Fix a memory leak.

parent b9f52908
...@@ -44414,6 +44414,10 @@ MA_API void ma_resampler_uninit(ma_resampler* pResampler, const ma_allocation_ca ...@@ -44414,6 +44414,10 @@ MA_API void ma_resampler_uninit(ma_resampler* pResampler, const ma_allocation_ca
} }
pResampler->pBackendVTable->onUninit(pResampler->pBackendUserData, pResampler->pBackend, pAllocationCallbacks); pResampler->pBackendVTable->onUninit(pResampler->pBackendUserData, pResampler->pBackend, pAllocationCallbacks);
if (pResampler->_ownsHeap) {
ma_free(pResampler->_pHeap, pAllocationCallbacks);
}
} }
MA_API ma_result ma_resampler_process_pcm_frames(ma_resampler* pResampler, const void* pFramesIn, ma_uint64* pFrameCountIn, void* pFramesOut, ma_uint64* pFrameCountOut) MA_API ma_result ma_resampler_process_pcm_frames(ma_resampler* pResampler, const void* pFramesIn, ma_uint64* pFrameCountIn, void* pFramesOut, ma_uint64* pFrameCountOut)
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