mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a double release bug.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user