mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a mismatched 'delete' in cSchedules::SetEpgDataFileName()
This commit is contained in:
parent
5f93700e07
commit
4f889749b3
@ -2881,6 +2881,7 @@ Marcus Roscher <dad401@gmx.de>
|
||||
Reinhard Mantey <geronimo013@gmx.de>
|
||||
for reporting a problem with character comparisons in
|
||||
cSubtitleObject::DecodeCharacterString()
|
||||
for fixing a mismatched 'delete' in cSchedules::SetEpgDataFileName()
|
||||
|
||||
Michael Schneider <vdrportal_midas@gmx.de>
|
||||
for reporting a problem with the EPG scan in case a transponder is not receivable in
|
||||
|
4
HISTORY
4
HISTORY
@ -7052,7 +7052,7 @@ Video Disk Recorder Revision History
|
||||
- Fixed handling IDLEPRIORITY in cDvbDevice::ProvidesChannel() (thanks to Frank
|
||||
Schmirler).
|
||||
|
||||
2012-05-12: Version 1.7.28
|
||||
2012-05-13: Version 1.7.28
|
||||
|
||||
- Fixed cPixmapMemory::DrawEllipse() for quadrants -1 and -4.
|
||||
- Fixed getting the maximum short channel name length in case there are no short names
|
||||
@ -7106,3 +7106,5 @@ Video Disk Recorder Revision History
|
||||
Wilke).
|
||||
- The new member function cSkinDisplayReplay::SetRecording() allows a skin to display
|
||||
more information about the currently played recording.
|
||||
- Fixed a mismatched 'delete' in cSchedules::SetEpgDataFileName() (thanks to Reinhard
|
||||
Mantey).
|
||||
|
6
epg.c
6
epg.c
@ -7,7 +7,7 @@
|
||||
* Original version (as used in VDR before 1.3.0) written by
|
||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||
*
|
||||
* $Id: epg.c 2.12 2012/03/10 13:14:27 kls Exp $
|
||||
* $Id: epg.c 2.13 2012/05/13 13:46:56 kls Exp $
|
||||
*/
|
||||
|
||||
#include "epg.h"
|
||||
@ -1125,7 +1125,7 @@ cSchedulesLock::~cSchedulesLock()
|
||||
// --- cSchedules ------------------------------------------------------------
|
||||
|
||||
cSchedules cSchedules::schedules;
|
||||
const char *cSchedules::epgDataFileName = NULL;
|
||||
char *cSchedules::epgDataFileName = NULL;
|
||||
time_t cSchedules::lastCleanup = time(NULL);
|
||||
time_t cSchedules::lastDump = time(NULL);
|
||||
time_t cSchedules::modified = 0;
|
||||
@ -1137,7 +1137,7 @@ const cSchedules *cSchedules::Schedules(cSchedulesLock &SchedulesLock)
|
||||
|
||||
void cSchedules::SetEpgDataFileName(const char *FileName)
|
||||
{
|
||||
delete epgDataFileName;
|
||||
free(epgDataFileName);
|
||||
epgDataFileName = FileName ? strdup(FileName) : NULL;
|
||||
}
|
||||
|
||||
|
4
epg.h
4
epg.h
@ -7,7 +7,7 @@
|
||||
* Original version (as used in VDR before 1.3.0) written by
|
||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||
*
|
||||
* $Id: epg.h 2.8 2012/03/10 13:50:10 kls Exp $
|
||||
* $Id: epg.h 2.9 2012/05/13 13:45:50 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __EPG_H
|
||||
@ -192,7 +192,7 @@ class cSchedules : public cList<cSchedule> {
|
||||
private:
|
||||
cRwLock rwlock;
|
||||
static cSchedules schedules;
|
||||
static const char *epgDataFileName;
|
||||
static char *epgDataFileName;
|
||||
static time_t lastCleanup;
|
||||
static time_t lastDump;
|
||||
static time_t modified;
|
||||
|
Loading…
Reference in New Issue
Block a user