ref: c917d318aaffaf991b9abdc49dad987b2d3e8086
parent: 40566f29f05e2ec8dced96f80dbb47ce23a4cff3
author: Huade Shi (huashi) <huashi@cisco.com>
date: Sat Mar 25 17:54:36 EDT 2017
Multi-thread-fixed:RBC#172:fixed memory leak issue
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -943,6 +943,16 @@
pDq->ppSliceInLayer = NULL;
}
+ if (pDq->pFirstMbIdxOfSlice) {
+ pMa->WelsFree (pDq->pFirstMbIdxOfSlice, "pDq->pFirstMbIdxOfSlice");
+ pDq->pFirstMbIdxOfSlice = NULL;
+ }
+
+ if (pDq->pCountMbNumInSlice) {
+ pMa->WelsFree (pDq->pCountMbNumInSlice, "pDq->pCountMbNumInSlice");
+ pDq->pCountMbNumInSlice = NULL;
+ }
+
if (pDq->pNumSliceCodedOfPartition) {
pMa->WelsFree (pDq->pNumSliceCodedOfPartition, "pNumSliceCodedOfPartition");
pDq->pNumSliceCodedOfPartition = NULL;