shithub: openh264

Download patch

ref: 1b11d831ad145a2a5aad9cf7f4182d83e81d4d42
parent: 1a9aa4c762288fd94590d4a1e1e998332d66ed75
author: Karina <ruil2@cisco.com>
date: Mon Jan 9 05:20:06 EST 2017

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;
   }
 }