mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
CChannelList::~CChannelList(): fix possible segfault
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e2d12e5d5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-12-15 (Sun, 15 Dec 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -126,20 +126,26 @@ CChannelList::~CChannelList()
|
||||
{
|
||||
//printf("************ DELETE LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
||||
chanlist.clear();
|
||||
delete dline;
|
||||
if (cc_minitv)
|
||||
if(dline){
|
||||
delete dline;
|
||||
dline = NULL;
|
||||
}
|
||||
if (cc_minitv){
|
||||
delete cc_minitv;
|
||||
cc_minitv = NULL;
|
||||
}
|
||||
if (headerClock) {
|
||||
headerClock->Stop();
|
||||
if (headerClock->isPainted())
|
||||
headerClock->hide();
|
||||
if (headerClock->isClockRun())
|
||||
headerClock->stopThread();
|
||||
delete headerClock;
|
||||
headerClock = NULL;
|
||||
if(headerClock){
|
||||
delete headerClock;
|
||||
headerClock = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CChannelList::ClearList(void)
|
||||
{
|
||||
//printf("************ CLEAR LIST %s : %x\n", name.c_str(), this);fflush(stdout);
|
||||
|
Reference in New Issue
Block a user