diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-05 12:53:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-05 12:53:43 +0200 |
commit | ff0a48d3be932e2d3ecab694ec013714b82db89f (patch) | |
tree | 7600cf605d2a9a18295b0939f3aff24f217b2d58 /dvbplayer.c | |
parent | fd2c54cec050587ed086e74a849ff1b8158cf5b8 (diff) | |
download | vdr-ff0a48d3be932e2d3ecab694ec013714b82db89f.tar.gz vdr-ff0a48d3be932e2d3ecab694ec013714b82db89f.tar.bz2 |
Fixed a memory leak in cDvbPlayer
Diffstat (limited to 'dvbplayer.c')
-rw-r--r-- | dvbplayer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbplayer.c b/dvbplayer.c index 8605268b..ad5ccf2d 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.30 2005/01/14 14:00:56 kls Exp $ + * $Id: dvbplayer.c 1.31 2005/05/05 12:52:40 kls Exp $ */ #include "dvbplayer.h" @@ -263,6 +263,7 @@ cDvbPlayer::~cDvbPlayer() { Detach(); Save(); + delete readFrame; // might not have been stored in the buffer in Action() delete index; delete fileName; delete backTrace; @@ -296,6 +297,7 @@ void cDvbPlayer::Empty(void) nonBlockingFileReader->Clear(); if ((readIndex = backTrace->Get(playDir == pdForward)) < 0) readIndex = writeIndex; + delete readFrame; // might not have been stored in the buffer in Action() readFrame = NULL; playFrame = NULL; ringBuffer->Clear(); |