summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-01 14:59:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-01 14:59:52 +0100
commit471b287f700f4e74c940399d43567ca06dad779a (patch)
tree348b37116a9cbe8ad5b514dac6221a431418a8dd /eit.c
parent1c4865147a01aec70fe6b8d1d4b5bd071c431cff (diff)
downloadvdr-471b287f700f4e74c940399d43567ca06dad779a.tar.gz
vdr-471b287f700f4e74c940399d43567ca06dad779a.tar.bz2
Fixed a memory leak in case of broken Extended Event Descriptors
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index 30c017b5..1f960bb2 100644
--- a/eit.c
+++ b/eit.c
@@ -8,7 +8,7 @@
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
*
- * $Id: eit.c 3.5 2014/02/08 14:20:27 kls Exp $
+ * $Id: eit.c 3.6 2015/02/01 14:55:27 kls Exp $
*/
#include "eit.h"
@@ -136,8 +136,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo
UseExtendedEventDescriptor = true;
}
if (UseExtendedEventDescriptor) {
- ExtendedEventDescriptors->Add(eed);
- d = NULL; // so that it is not deleted
+ if (ExtendedEventDescriptors->Add(eed))
+ d = NULL; // so that it is not deleted
}
if (eed->getDescriptorNumber() == eed->getLastDescriptorNumber())
UseExtendedEventDescriptor = false;