mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Some cleanup
This commit is contained in:
parent
24c17aa02f
commit
b34fa9d33a
23
eit.c
23
eit.c
@ -13,7 +13,7 @@
|
|||||||
* the Free Software Foundation; either version 2 of the License, or *
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
* (at your option) any later version. *
|
* (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* $Id: eit.c 1.5 2000/10/29 10:58:31 kls Exp $
|
* $Id: eit.c 1.6 2000/11/01 15:51:00 kls Exp $
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "eit.h"
|
#include "eit.h"
|
||||||
@ -219,10 +219,9 @@ cEventInfo::cEventInfo(unsigned short serviceid, unsigned short eventid)
|
|||||||
|
|
||||||
cEventInfo::~cEventInfo()
|
cEventInfo::~cEventInfo()
|
||||||
{
|
{
|
||||||
//XXX why not just use 'delete'???
|
delete pTitle;
|
||||||
if (pTitle != NULL) free(pTitle);
|
delete pSubtitle;
|
||||||
if (pSubtitle != NULL) free(pSubtitle);
|
delete pExtendedDescription;
|
||||||
if (pExtendedDescription != NULL) free(pExtendedDescription);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
@ -1074,7 +1073,7 @@ void cSIProcessor::Action()
|
|||||||
struct tm *ptm = localtime(&now);
|
struct tm *ptm = localtime(&now);
|
||||||
if (dayofdelete != ptm->tm_yday && ptm->tm_hour == 0 && ptm->tm_min < 5)
|
if (dayofdelete != ptm->tm_yday && ptm->tm_hour == 0 && ptm->tm_min < 5)
|
||||||
{
|
{
|
||||||
dsyslog(LOG_INFO, "Now cleaning up things");
|
isyslog(LOG_INFO, "Now cleaning up things");
|
||||||
|
|
||||||
LOCK_THREAD;
|
LOCK_THREAD;
|
||||||
|
|
||||||
@ -1103,10 +1102,8 @@ void cSIProcessor::Action()
|
|||||||
{
|
{
|
||||||
if (useTStime)
|
if (useTStime)
|
||||||
{
|
{
|
||||||
//XXX wouldn't it be ok to have ctdt on the stack???
|
cTDT ctdt((tdt_t *)buf);
|
||||||
cTDT *ctdt = new cTDT((tdt_t *)buf);
|
ctdt.SetSystemTime();
|
||||||
ctdt->SetSystemTime();
|
|
||||||
delete ctdt;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*XXX this comes pretty often:
|
/*XXX this comes pretty often:
|
||||||
@ -1120,10 +1117,8 @@ void cSIProcessor::Action()
|
|||||||
{
|
{
|
||||||
LOCK_THREAD;
|
LOCK_THREAD;
|
||||||
|
|
||||||
//XXX wouldn't it be ok to have ceit on the stack???
|
cEIT ceit(buf, seclen, schedules);
|
||||||
cEIT *ceit = new cEIT(buf, seclen, schedules);
|
ceit.ProcessEIT();
|
||||||
ceit->ProcessEIT();
|
|
||||||
delete ceit;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
dsyslog(LOG_INFO, "Received stuffing section in EIT\n");
|
dsyslog(LOG_INFO, "Received stuffing section in EIT\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user