CChannelList: add missing compare for existant header object.

This commit is contained in:
2017-05-06 22:32:16 +02:00
parent bbb04bfb20
commit 86c18141dd

View File

@@ -2158,13 +2158,17 @@ void CChannelList::paintHead()
CComponentsHeader* CChannelList::getHeaderObject() CComponentsHeader* CChannelList::getHeaderObject()
{ {
if (header)
return header; return header;
return NULL;
} }
void CChannelList::ResetModules() void CChannelList::ResetModules()
{ {
if (header){
delete header; delete header;
header = NULL; header = NULL;
}
if(dline){ if(dline){
delete dline; delete dline;
dline = NULL; dline = NULL;