mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 06:43:01 +05:00
fix delete
This commit is contained in:
parent
dda51ec845
commit
1b4859ac25
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ FLAC__StreamDecoderWriteStatus CAEFLACDecoder::write_cb(const FLAC__StreamDecode
|
|||
|
||||
if ( pClientData->m_curBlockSize > pClientData->m_maxBlockSize )
|
||||
{
|
||||
delete pClientData->m_buffer;
|
||||
delete[] pClientData->m_buffer;
|
||||
pClientData->m_buffer = new FLAC__int32[pClientData->m_curBlockSize * processedChannels];
|
||||
pClientData->m_maxBlockSize = pClientData->m_curBlockSize;
|
||||
}
|
||||
|
@ -239,5 +239,5 @@ CAEFLACDecoder::~CAEFLACDecoder()
|
|||
if ( m_streamMeta != nullptr )
|
||||
FLAC__metadata_object_delete(m_streamMeta);
|
||||
}
|
||||
delete m_buffer;
|
||||
delete[] m_buffer;
|
||||
}
|
Loading…
Reference in a new issue