From ea04f80d95f280b47c1e96a99dbffb798e100967 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 22 May 2004 15:47:06 +0200 Subject: [PATCH] Fixed a memory leak in NIT processing --- CONTRIBUTORS | 1 + HISTORY | 1 + nit.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 3554620f..ec62329f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -671,6 +671,7 @@ Marcel Wiesweg for adding 'libsi' include files to the 'include' directory, so that plugins can use them for his help in fixing some issues with gcc 3.4 + for fixing a memory leak in NIT processing Torsten Herz for fixing a possible deadlock when using the "Blue" button in the "Schedules" menu diff --git a/HISTORY b/HISTORY index f2457386..68689982 100644 --- a/HISTORY +++ b/HISTORY @@ -2825,3 +2825,4 @@ Video Disk Recorder Revision History this one and helping to test the fix). - Fixed freezing picture when a recording starts on a system that always uses 'Transfer Mode' (thanks to Michal Dobrzynski for reporting this one). +- Fixed a memory leak in NIT processing (thanks to Marcel Wiesweg). diff --git a/nit.c b/nit.c index 92c02f1f..cf3b674f 100644 --- a/nit.c +++ b/nit.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: nit.c 1.6 2004/02/13 14:41:36 kls Exp $ + * $Id: nit.c 1.7 2004/05/22 15:46:21 kls Exp $ */ #include "nit.h" @@ -76,6 +76,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length break; default: ; } + delete d; } nits[numNits].networkId = nit.getNetworkId(); nits[numNits].hasTransponder = false;