summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-29 13:23:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-29 13:23:15 +0200
commit7367b6a832ccf97a02024f6ec8e436403c19efaa (patch)
tree827d5acf0ec2033cac653a2dd57ede7292762e7c /recording.c
parent56468f72ad2b2bd5a5adc4b6980949d077ec2238 (diff)
downloadvdr-7367b6a832ccf97a02024f6ec8e436403c19efaa.tar.gz
vdr-7367b6a832ccf97a02024f6ec8e436403c19efaa.tar.bz2
Fixed a memory leak in closing the video file during replay
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 351713e9..229cfee5 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.147 2006/04/23 10:43:06 kls Exp $
+ * $Id: recording.c 1.148 2006/04/29 13:22:20 kls Exp $
*/
#include "recording.h"
@@ -1436,7 +1436,7 @@ cUnbufferedFile *cFileName::Open(void)
void cFileName::Close(void)
{
if (file) {
- if ((record && CloseVideoFile(file) < 0) || (!record && file->Close() < 0))
+ if (CloseVideoFile(file) < 0)
LOG_ERROR_STR(fileName);
file = NULL;
}