From 1f7c52b61d6e16a4ff3e156601a5a5c1285ee727 Mon Sep 17 00:00:00 2001
From: Xiang Li <xlxiangli@tencent.com>
Date: Wed, 14 Nov 2018 08:43:33 -0800
Subject: [PATCH] Set m_storedMv to nullptr after delete.

---
 source/Lib/CommonLib/InterPrediction.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/source/Lib/CommonLib/InterPrediction.cpp b/source/Lib/CommonLib/InterPrediction.cpp
index 216bde76cc..c920aedaaa 100644
--- a/source/Lib/CommonLib/InterPrediction.cpp
+++ b/source/Lib/CommonLib/InterPrediction.cpp
@@ -128,6 +128,7 @@ void InterPrediction::destroy()
   if (m_storedMv != nullptr)
   {
     delete[]m_storedMv;
+    m_storedMv = nullptr;
   }
 #endif
 
-- 
GitLab