summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-24 09:10:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-24 09:10:07 +0200
commit987c2f34e710dc4c88898bcd20aff166002bc0fd (patch)
tree17c018b76d89af31999231b641e0ca97dc1d13d9 /dvbplayer.c
parent24bbaa277c546857176ff1485f67f6185d4fbedb (diff)
downloadvdr-987c2f34e710dc4c88898bcd20aff166002bc0fd.tar.gz
vdr-987c2f34e710dc4c88898bcd20aff166002bc0fd.tar.bz2
Fixed a memory leak in cNonBlockingFileReader
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c3
1 files changed, 2 insertions, 1 deletions
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;