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
73void CDownsampling::FreeSampleBuffer() {73void CDownsampling::FreeSampleBuffer() {
74 for (int32_t i = 0; i < 2; i++) {74 for (int32_t i = 0; i < 2; i++) {
75 WelsFree (m_pSampleBuffer[i][0]);75 WelsFree (m_pSampleBuffer[i][0]);
76 m_pSampleBuffer[i][0] = NULL;
76 WelsFree (m_pSampleBuffer[i][1]);77 WelsFree (m_pSampleBuffer[i][1]);
78 m_pSampleBuffer[i][1] = NULL;
77 WelsFree (m_pSampleBuffer[i][2]);79 WelsFree (m_pSampleBuffer[i][2]);
80 m_pSampleBuffer[i][2] = NULL;
78 }81 }
79}82}
80 83

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