diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-12-14 21:15:02 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-12-14 21:15:02 +0100 |
commit | f275346ecc6bccb5d9cdf56e4e553ff45e941f50 (patch) | |
tree | df07f9fbb4154376c4311c52dc6a6e4e7dc37d4b /nit.c | |
parent | 33b47142e47ae73438f8562c808b0e8dad460199 (diff) | |
download | vdr-f275346ecc6bccb5d9cdf56e4e553ff45e941f50.tar.gz vdr-f275346ecc6bccb5d9cdf56e4e553ff45e941f50.tar.bz2 |
Fixed a memory leak in handling the NIT
Diffstat (limited to 'nit.c')
-rw-r--r-- | nit.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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" @@ -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)); ) { if (d->getDescriptorTag() == SI::S2SatelliteDeliverySystemDescriptorTag) { ForceDVBS2 = true; + delete d; break; } + delete d; } for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) { |