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()
{ {
return header; if (header)
return header;
return NULL;
} }
void CChannelList::ResetModules() void CChannelList::ResetModules()
{ {
delete header; if (header){
header = NULL; delete header;
header = NULL;
}
if(dline){ if(dline){
delete dline; delete dline;
dline = NULL; dline = NULL;