ref: dcd3618bfc70fe6b409a46fc729d5b5161e02b9d
parent: 1a9aa4c762288fd94590d4a1e1e998332d66ed75
parent: 1b11d831ad145a2a5aad9cf7f4182d83e81d4d42
author: huili2 <huili2@cisco.com>
date: Mon Jan 9 07:53:58 EST 2017
Merge pull request #2638 from ruil2/memory set null when buffer is released
--- a/codec/processing/src/downsample/downsample.cpp
+++ b/codec/processing/src/downsample/downsample.cpp
@@ -73,8 +73,11 @@
void CDownsampling::FreeSampleBuffer() {
for (int32_t i = 0; i < 2; i++) {
WelsFree (m_pSampleBuffer[i][0]);
+ m_pSampleBuffer[i][0] = NULL;
WelsFree (m_pSampleBuffer[i][1]);
+ m_pSampleBuffer[i][1] = NULL;
WelsFree (m_pSampleBuffer[i][2]);
+ m_pSampleBuffer[i][2] = NULL;
}
}