mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CChannelList::~CChannelList(): fix possible segfault
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
@@ -126,20 +126,26 @@ CChannelList::~CChannelList()
|
|||||||
{
|
{
|
||||||
//printf("************ DELETE LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
//printf("************ DELETE LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
||||||
chanlist.clear();
|
chanlist.clear();
|
||||||
|
if(dline){
|
||||||
delete dline;
|
delete dline;
|
||||||
if (cc_minitv)
|
dline = NULL;
|
||||||
|
}
|
||||||
|
if (cc_minitv){
|
||||||
delete cc_minitv;
|
delete cc_minitv;
|
||||||
|
cc_minitv = NULL;
|
||||||
|
}
|
||||||
if (headerClock) {
|
if (headerClock) {
|
||||||
headerClock->Stop();
|
headerClock->Stop();
|
||||||
if (headerClock->isPainted())
|
if (headerClock->isPainted())
|
||||||
headerClock->hide();
|
headerClock->hide();
|
||||||
if (headerClock->isClockRun())
|
if (headerClock->isClockRun())
|
||||||
headerClock->stopThread();
|
headerClock->stopThread();
|
||||||
|
if(headerClock){
|
||||||
delete headerClock;
|
delete headerClock;
|
||||||
headerClock = NULL;
|
headerClock = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
void CChannelList::ClearList(void)
|
void CChannelList::ClearList(void)
|
||||||
{
|
{
|
||||||
//printf("************ CLEAR LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
//printf("************ CLEAR LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
||||||
|
Reference in New Issue
Block a user