From 3398b6fb17407adbe496ad5e8c39db48daaa30e1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 6 May 2017 22:32:16 +0200 Subject: [PATCH] CChannelList: add missing compare for existant header object. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/86c18141dd9cdd33388898a96f4d454d6ae819ac Author: Thilo Graf Date: 2017-05-06 (Sat, 06 May 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 32d70dbd8..db257a86c 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2158,13 +2158,17 @@ void CChannelList::paintHead() CComponentsHeader* CChannelList::getHeaderObject() { - return header; + if (header) + return header; + return NULL; } void CChannelList::ResetModules() { - delete header; - header = NULL; + if (header){ + delete header; + header = NULL; + } if(dline){ delete dline; dline = NULL;