diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-05-13 13:46:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-05-13 13:46:56 +0200 |
commit | 4f889749b3d4a6f3e0c24cc03bd4e432c6638cdf (patch) | |
tree | 7b86f4142b8075b0e15eb17c2894309113054084 /epg.c | |
parent | 5f93700e07382ec2d1ef735f36f4f988f0318ad2 (diff) | |
download | vdr-4f889749b3d4a6f3e0c24cc03bd4e432c6638cdf.tar.gz vdr-4f889749b3d4a6f3e0c24cc03bd4e432c6638cdf.tar.bz2 |
Fixed a mismatched 'delete' in cSchedules::SetEpgDataFileName()
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |