History

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.

Martin Storsjö committed 12 years ago

Commit 37ae6501 parent c5091e71 file · +1 −1Browse files

Showing the changes to codec/processing/src/common/WelsFrameWork.cpp (1 of 1 file). Show all

Unified · Split

codec/processing/src/common/WelsFrameWork.cpp+1−1
@@ -105,7 +105,7 @@ CVpFrameWork::~CVpFrameWork() { · 104 unmodified lines
105 for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {105 for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {
106 if (m_pStgChain[i]) {106 if (m_pStgChain[i]) {
107 Uninit (m_pStgChain[i]->m_eMethod);107 Uninit (m_pStgChain[i]->m_eMethod);
108 _SafeDelete (m_pStgChain[i]);108 delete m_pStgChain[i];
109 }109 }
110 }110 }
111 111

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t