diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-01 14:59:52 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-01 14:59:52 +0100 |
commit | 471b287f700f4e74c940399d43567ca06dad779a (patch) | |
tree | 348b37116a9cbe8ad5b514dac6221a431418a8dd /eit.c | |
parent | 1c4865147a01aec70fe6b8d1d4b5bd071c431cff (diff) | |
download | vdr-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |