mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a memory leak in closing the video file during replay
This commit is contained in:
parent
56468f72ad
commit
7367b6a832
@ -1864,6 +1864,7 @@ Richard Lithvall <richard@lithvall.se>
|
|||||||
Tobias Grimm <listaccount@e-tobi.net>
|
Tobias Grimm <listaccount@e-tobi.net>
|
||||||
for suggesting to use geteuid() to check whether VDR is running as user 'root'
|
for suggesting to use geteuid() to check whether VDR is running as user 'root'
|
||||||
for fixing a memory leak in handling external EPG data
|
for fixing a memory leak in handling external EPG data
|
||||||
|
for fixing a memory leak in closing the video file during replay
|
||||||
|
|
||||||
Helge Lenz <h.lenz@gmx.de>
|
Helge Lenz <h.lenz@gmx.de>
|
||||||
for reporting a bug in setting the 'Delta' parameter when calling the shutdown
|
for reporting a bug in setting the 'Delta' parameter when calling the shutdown
|
||||||
|
1
HISTORY
1
HISTORY
@ -4684,3 +4684,4 @@ Video Disk Recorder Revision History
|
|||||||
is active (thanks to Udo Richter; bug reported by Dominique Simon).
|
is active (thanks to Udo Richter; bug reported by Dominique Simon).
|
||||||
- Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski).
|
- Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski).
|
||||||
- Fixed a memory leak in handling external EPG data (thanks to Tobias Grimm).
|
- Fixed a memory leak in handling external EPG data (thanks to Tobias Grimm).
|
||||||
|
- Fixed a memory leak in closing the video file during replay (thanks to Tobias Grimm).
|
||||||
|
@ -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: 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"
|
#include "recording.h"
|
||||||
@ -1436,7 +1436,7 @@ cUnbufferedFile *cFileName::Open(void)
|
|||||||
void cFileName::Close(void)
|
void cFileName::Close(void)
|
||||||
{
|
{
|
||||||
if (file) {
|
if (file) {
|
||||||
if ((record && CloseVideoFile(file) < 0) || (!record && file->Close() < 0))
|
if (CloseVideoFile(file) < 0)
|
||||||
LOG_ERROR_STR(fileName);
|
LOG_ERROR_STR(fileName);
|
||||||
file = NULL;
|
file = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user