History

set null when buffer is released

Karina committed 9 years ago

Commit 1b11d831 parent 1a9aa4c1 file · +3 −0Browse files

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

Unified · Split

codec/processing/src/downsample/downsample.cpp+3−0
@@ -73,8 +73,11 @@ FREE_RET: · 72 unmodified lines
7373 void CDownsampling::FreeSampleBuffer() {
7474 for (int32_t i = 0; i < 2; i++) {
7575 WelsFree (m_pSampleBuffer[i][0]);
76+ m_pSampleBuffer[i][0] = NULL;
7677 WelsFree (m_pSampleBuffer[i][1]);
78+ m_pSampleBuffer[i][1] = NULL;
7779 WelsFree (m_pSampleBuffer[i][2]);
80+ m_pSampleBuffer[i][2] = NULL;
7881 }
7982 }
8083

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