mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a memory leak in cDvbPlayer
This commit is contained in:
parent
fd2c54cec0
commit
ff0a48d3be
@ -194,6 +194,7 @@ Stefan Huelswitt <huels@iname.com>
|
|||||||
for adding MPEG1 replay capability to cPesAssembler
|
for adding MPEG1 replay capability to cPesAssembler
|
||||||
for fixing handling symbolic links in cRecordings::ScanVideoDir()
|
for fixing handling symbolic links in cRecordings::ScanVideoDir()
|
||||||
for reporting a memory leak in tComponent
|
for reporting a memory leak in tComponent
|
||||||
|
for fixing a memory leak in cDvbPlayer
|
||||||
|
|
||||||
Ulrich Röder <roeder@efr-net.de>
|
Ulrich Röder <roeder@efr-net.de>
|
||||||
for pointing out that there are channels that have a symbol rate higher than 27500
|
for pointing out that there are channels that have a symbol rate higher than 27500
|
||||||
|
1
HISTORY
1
HISTORY
@ -3480,3 +3480,4 @@ Video Disk Recorder Revision History
|
|||||||
(thanks to Ville Skyttä).
|
(thanks to Ville Skyttä).
|
||||||
- Updated the Danish OSD texts (thanks to Mogens Elneff).
|
- Updated the Danish OSD texts (thanks to Mogens Elneff).
|
||||||
- Fixed a memory leak in tComponent (thanks to Stefan Huelswitt and Daniel Thompson).
|
- Fixed a memory leak in tComponent (thanks to Stefan Huelswitt and Daniel Thompson).
|
||||||
|
- Fixed a memory leak in cDvbPlayer (thanks to Stefan Huelswitt).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "dvbplayer.h"
|
||||||
@ -263,6 +263,7 @@ cDvbPlayer::~cDvbPlayer()
|
|||||||
{
|
{
|
||||||
Detach();
|
Detach();
|
||||||
Save();
|
Save();
|
||||||
|
delete readFrame; // might not have been stored in the buffer in Action()
|
||||||
delete index;
|
delete index;
|
||||||
delete fileName;
|
delete fileName;
|
||||||
delete backTrace;
|
delete backTrace;
|
||||||
@ -296,6 +297,7 @@ void cDvbPlayer::Empty(void)
|
|||||||
nonBlockingFileReader->Clear();
|
nonBlockingFileReader->Clear();
|
||||||
if ((readIndex = backTrace->Get(playDir == pdForward)) < 0)
|
if ((readIndex = backTrace->Get(playDir == pdForward)) < 0)
|
||||||
readIndex = writeIndex;
|
readIndex = writeIndex;
|
||||||
|
delete readFrame; // might not have been stored in the buffer in Action()
|
||||||
readFrame = NULL;
|
readFrame = NULL;
|
||||||
playFrame = NULL;
|
playFrame = NULL;
|
||||||
ringBuffer->Clear();
|
ringBuffer->Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user