mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a memory leak in ma_decoder_init_memory().
This commit is contained in:
+1
-1
@@ -65001,7 +65001,7 @@ MA_API ma_result ma_decoder_init_memory(const void* pData, size_t dataSize, cons
|
||||
|
||||
result = ma_decoder_init__internal(&config, pDecoder);
|
||||
if (result == MA_SUCCESS) {
|
||||
return ma_decoder__postinit_or_uninit(&config, pDecoder);
|
||||
return result; /* Don't return ma_decoder__postinit_or_uninit() here because ma_decoder_init__internal() will already have done it. */
|
||||
}
|
||||
} else {
|
||||
/* Initialization failed. Probably an unsupported format. Skip. */
|
||||
|
||||
Reference in New Issue
Block a user