diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 09:10:07 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 09:10:07 +0200 |
commit | 987c2f34e710dc4c88898bcd20aff166002bc0fd (patch) | |
tree | 17c018b76d89af31999231b641e0ca97dc1d13d9 | |
parent | 24bbaa277c546857176ff1485f67f6185d4fbedb (diff) | |
download | vdr-987c2f34e710dc4c88898bcd20aff166002bc0fd.tar.gz vdr-987c2f34e710dc4c88898bcd20aff166002bc0fd.tar.bz2 |
Fixed a memory leak in cNonBlockingFileReader
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dvbplayer.c | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 4e205ef1..bf368b29 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -172,6 +172,7 @@ Stefan Huelswitt <huels@iname.com> for implementing setting the "broken link" flag for GOPs at the beginning of a new video sequence, which avoids artefacts when cutting for suggesting to add VDRVERSNUM to config.h + for fixing a memory leak in cNonBlockingFileReader Ulrich Röder <roeder@efr-net.de> for pointing out that there are channels that have a symbol rate higher than @@ -2177,3 +2177,4 @@ Video Disk Recorder Revision History - Modified handling of audio packets in cDvbPlayer for better sync with external AC3 replay (thanks to Werner Fink). +- Fixed a memory leak in cNonBlockingFileReader (thanks to Stefan Huelswitt). diff --git a/dvbplayer.c b/dvbplayer.c index 7224a8ab..6b7fe076 100644 --- a/dvbplayer.c +++ b/dvbplayer.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbplayer.c 1.21 2003/05/19 15:23:19 kls Exp $ + * $Id: dvbplayer.c 1.22 2003/05/24 09:04:26 kls Exp $ */ #include "dvbplayer.h" @@ -114,6 +114,7 @@ void cNonBlockingFileReader::Clear(void) { cMutexLock MutexLock(&mutex); f = -1; + free(buffer); buffer = NULL; wanted = length = 0; hasData = false; |