Fixed a memory leak in handling the NIT

This commit is contained in:
Klaus Schmidinger 2021-12-27 11:11:16 +01:00
parent 2e1b2107e7
commit 26412e8888
3 changed files with 5 additions and 1 deletions

View File

@ -3649,6 +3649,7 @@ Helmut Binder <cco@aon.at>
PMT pid were checked any more
for reporting a problem with PMT handling in case locking the Channels list times out
for avoiding a lengthy lock on the Channels list when starting a recording
for fixing a memory leak in handling the NIT
Ulrich Eckhardt <uli@uli-eckhardt.de>
for reporting a problem with shutdown after user inactivity in case a plugin is

View File

@ -9581,3 +9581,4 @@ Video Disk Recorder Revision History
- Fixed cTsPayload::AtPayloadStart() to ignore TS packets from other PIDs.
- Fixed unlocking vs. call to EpgHandlers.EndSegmentTransfer() (reported by Christoph
Haubrich).
- Fixed a memory leak in handling the NIT (thanks to Helmut Binder).

4
nit.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: nit.c 4.9 2019/05/31 13:25:00 kls Exp $
* $Id: nit.c 4.9.1.1 2021/12/27 11:09:16 kls Exp $
*/
#include "nit.h"
@ -102,8 +102,10 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) {
if (d->getDescriptorTag() == SI::S2SatelliteDeliverySystemDescriptorTag) {
ForceDVBS2 = true;
delete d;
break;
}
delete d;
}
for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) {