Commit 1b94c3f1 authored by Xiang Li's avatar Xiang Li

Fix the new/delete mismatch

parent a86ab09c
......@@ -192,20 +192,20 @@ void EncCu::destroy()
delete[] m_pTempMotLUTs[w][h]->motionCand;
m_pTempMotLUTs[w][h]->motionCand = nullptr;
delete[] m_pTempMotLUTs[w][h];
delete m_pTempMotLUTs[w][h];
if (m_pBestMotLUTs[w][h])
delete[] m_pBestMotLUTs[w][h]->motionCand;
m_pBestMotLUTs[w][h]->motionCand = nullptr;
delete[] m_pBestMotLUTs[w][h];
delete m_pBestMotLUTs[w][h];
if (m_pSplitTempMotLUTs[w][h])
delete[] m_pSplitTempMotLUTs[w][h]->motionCand;
m_pSplitTempMotLUTs[w][h]->motionCand = nullptr;
delete[] m_pSplitTempMotLUTs[w][h];
delete m_pSplitTempMotLUTs[w][h];
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