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.
Showing the changes to codec/processing/src/common (1 of 1 file). Show all
Unified · Split
| @@ -105,7 +105,7 @@ CVpFrameWork::~CVpFrameWork() { · 104 unmodified lines | ||
| 105 | 105 | for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) { |
| 106 | 106 | if (m_pStgChain[i]) { |
| 107 | 107 | Uninit (m_pStgChain[i]->m_eMethod); |
| 108 | − _SafeDelete (m_pStgChain[i]); | |
| 108 | + delete m_pStgChain[i]; | |
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |