Commit 4885a19e authored by Xiang Li's avatar Xiang Li Committed by Frank Bossen
Browse files

Fix memory leak In palette mode

parent cefa4def
......@@ -728,6 +728,20 @@ void BestEncInfoCache::destroy()
delete[] m_pCoeff;
delete[] m_pPcmBuf;
#if JVET_O0119_BASE_PALETTE_444
if (m_runType != nullptr)
{
delete[] m_runType;
m_runType = nullptr;
}
if (m_runLength != nullptr)
{
delete[] m_runLength;
m_runLength = nullptr;
}
#endif
}
void BestEncInfoCache::init( const Slice &slice )
......
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