From 577123762b7b6f1703e34f7c177b2dac332ddcc7 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 5 Feb 2021 20:34:07 +1000 Subject: [PATCH] Fix a double release bug. --- miniaudio.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 37500593..1291f52f 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -13932,12 +13932,10 @@ static ma_result ma_context_get_device_info_from_IAudioClient__wasapi(ma_context ma_PropVariantClear(pContext, &var); if (!found) { - ma_IPropertyStore_Release(pProperties); ma_context_post_error(pContext, NULL, MA_LOG_LEVEL_WARNING, "[WASAPI] Failed to find suitable device format for device info retrieval.", MA_FORMAT_NOT_SUPPORTED); } } } else { - ma_IPropertyStore_Release(pProperties); ma_context_post_error(pContext, NULL, MA_LOG_LEVEL_WARNING, "[WASAPI] Failed to retrieve device format for device info retrieval.", ma_result_from_HRESULT(hr)); }