1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a memory leak in handling the NIT

This commit is contained in:
Klaus Schmidinger 2021-12-14 21:15:02 +01:00
parent 33b47142e4
commit f275346ecc
3 changed files with 6 additions and 2 deletions

View File

@ -3667,6 +3667,7 @@ Helmut Binder <cco@aon.at>
for fixing flushing old data from the section handler for fixing flushing old data from the section handler
for removing unused declaration of cDvbTuner::SetFrontendType() for removing unused declaration of cDvbTuner::SetFrontendType()
for fixing handling incomplete multi-packet CAT for fixing handling incomplete multi-packet CAT
for fixing a memory leak in handling the NIT
Ulrich Eckhardt <uli@uli-eckhardt.de> Ulrich Eckhardt <uli@uli-eckhardt.de>
for reporting a problem with shutdown after user inactivity in case a plugin is for reporting a problem with shutdown after user inactivity in case a plugin is

View File

@ -9737,7 +9737,7 @@ Video Disk Recorder Revision History
- The Recordings menu now marks recordings with errors with an exclamation mark ('!'), - The Recordings menu now marks recordings with errors with an exclamation mark ('!'),
and the number of errors (if any) is displayed in the recording's Info menu. and the number of errors (if any) is displayed in the recording's Info menu.
2021-12-11: 2021-12-14:
- Replaced all umlauts in the example channels.conf with their ae, oe, ue substitutes - Replaced all umlauts in the example channels.conf with their ae, oe, ue substitutes
to avoid problems on UTF-8 systems. to avoid problems on UTF-8 systems.
@ -9745,3 +9745,4 @@ Video Disk Recorder Revision History
Haubrich). Haubrich).
- Fixed unlocking vs. call to EpgHandlers.EndSegmentTransfer() (reported by Christoph - Fixed unlocking vs. call to EpgHandlers.EndSegmentTransfer() (reported by Christoph
Haubrich). 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 * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: nit.c 5.1 2021/03/16 15:10:54 kls Exp $ * $Id: nit.c 5.2 2021/12/14 21:15:02 kls Exp $
*/ */
#include "nit.h" #include "nit.h"
@ -100,8 +100,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)); ) { for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) {
if (d->getDescriptorTag() == SI::S2SatelliteDeliverySystemDescriptorTag) { if (d->getDescriptorTag() == SI::S2SatelliteDeliverySystemDescriptorTag) {
ForceDVBS2 = true; ForceDVBS2 = true;
delete d;
break; break;
} }
delete d;
} }
for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) { for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) {