diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-12-27 11:11:16 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-12-27 11:11:16 +0100 |
commit | 26412e88881697f2ca54164e20dfe75173d1ffd6 (patch) | |
tree | 02bca214b7a87707ee1cf58a943fdef7af02dff5 /nit.c | |
parent | 2e1b2107e70585aa761446e8e5f43b43abfb7949 (diff) | |
download | vdr-26412e88881697f2ca54164e20dfe75173d1ffd6.tar.gz vdr-26412e88881697f2ca54164e20dfe75173d1ffd6.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 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)); ) { |