shithub: openh264

Download patch

ref: 37ae6505d4b697bc414195a2be94596fa1cb6adb
parent: c5091e73beeefe8e5d256bed1327233649efde74
author: Martin Storsjö <[email protected]>
date: Tue Sep 16 07:05:42 EDT 2014

Use delete instead of the _SafeDelete macro

Since this is the destructor of the class, the member variables
won't be read afterwards, and setting the pointers to NULL afterwards
is redundant.

--- a/codec/processing/src/common/WelsFrameWork.cpp
+++ b/codec/processing/src/common/WelsFrameWork.cpp
@@ -105,7 +105,7 @@
   for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {
     if (m_pStgChain[i]) {
       Uninit (m_pStgChain[i]->m_eMethod);
-      _SafeDelete (m_pStgChain[i]);
+      delete m_pStgChain[i];
     }
   }