History

Multi-thread-fixed:RBC#172:fixed memory leak issue

Huade Shi (huashi) committed 9 years ago

Commit c917d311 parent 40566f21 file · +10 −0Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+10−0
@@ -943,6 +943,16 @@ void FreeDqLayer (SDqLayer*& pDq, CMemoryAlign* pMa) { · 942 unmodified lines
943943 pDq->ppSliceInLayer = NULL;
944944 }
945945
946+ if (pDq->pFirstMbIdxOfSlice) {
947+ pMa->WelsFree (pDq->pFirstMbIdxOfSlice, "pDq->pFirstMbIdxOfSlice");
948+ pDq->pFirstMbIdxOfSlice = NULL;
949+ }
950+
951+ if (pDq->pCountMbNumInSlice) {
952+ pMa->WelsFree (pDq->pCountMbNumInSlice, "pDq->pCountMbNumInSlice");
953+ pDq->pCountMbNumInSlice = NULL;
954+ }
955+
946956 if (pDq->pNumSliceCodedOfPartition) {
947957 pMa->WelsFree (pDq->pNumSliceCodedOfPartition, "pNumSliceCodedOfPartition");
948958 pDq->pNumSliceCodedOfPartition = NULL;

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