From 1b94c3f1174e3acc5064589a3ebc0b1767f364f5 Mon Sep 17 00:00:00 2001
From: Xiang Li <xlxiangli@tencent.com>
Date: Thu, 27 Dec 2018 13:02:24 -0800
Subject: [PATCH] Fix the new/delete mismatch

---
 source/Lib/EncoderLib/EncCu.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/Lib/EncoderLib/EncCu.cpp b/source/Lib/EncoderLib/EncCu.cpp
index 5d394c74e..608bb5a59 100644
--- a/source/Lib/EncoderLib/EncCu.cpp
+++ b/source/Lib/EncoderLib/EncCu.cpp
@@ -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];
       }
 #endif
     }
-- 
GitLab