channellist.cpp: Fix segfault at 'delete Infobox' when changes in bouquet list.

Origin commit data
------------------
Branch: ni/coolstream
Commit: 505d14c0a1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-09-22 (Sat, 22 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2012-09-22 05:52:24 +02:00
committed by Thilo Graf
parent 43913c1221
commit dd48917b6d

View File

@@ -116,7 +116,7 @@ CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vl
previous_channellist_additional = -1;
eventFont = SNeutrinoSettings::FONT_TYPE_CHANNELLIST_EVENT;
dline = NULL;
ibox = new CComponentsInfoBox(x, y + height + 2, width, info_height);
ibox = NULL;
clHead = NULL;
indexLogo = 0;
@@ -1547,6 +1547,7 @@ void CChannelList::paintDetails(int index)
p_event = &chanlist[index]->currentEvent;
//infobox
if (ibox)
ibox->paint(false);
if (!p_event->description.empty()) {
@@ -1664,6 +1665,8 @@ void CChannelList::paintItem2DetailsLine (int pos)
}
//infobox
if (ibox == NULL)
ibox = new CComponentsInfoBox(x, y + height + 2, width, info_height);
if (ibox){
ibox->setDimensionsAll(x, ypos2, width, info_height);
ibox->setFrameThickness(2);