1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

Merge pull request #43 from pipelka/sectionfilter-mem-leak

Fixed memory leak in cSatipSectionFilter
This commit is contained in:
Rolf Ahrenberg 2017-09-24 23:24:42 +03:00 committed by GitHub
commit 97097f74af

View File

@ -102,8 +102,11 @@ int cSatipSectionFilter::Filter(void)
if (doneqM && !neq) if (doneqM && !neq)
return 0; return 0;
if (ringBufferM && (secLenM > 0)) if (ringBufferM && (secLenM > 0)) {
ringBufferM->Put(new cFrame(secBufM, secLenM)); cFrame* section = new cFrame(secBufM, secLenM);
if (!ringBufferM->Put(section))
DELETE_POINTER(section);
}
} }
return 0; return 0;
} }