gui/channellist.cpp: bug fix, default copy constructor is danger, if class have pointers

Origin commit data
------------------
Commit: 36b14e31ef
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-11-26 (Wed, 26 Nov 2014)
This commit is contained in:
[CST] Focus
2014-11-26 10:45:29 +03:00
parent 70939ec2f1
commit 763f79a584
3 changed files with 3 additions and 5 deletions

View File

@@ -1363,13 +1363,11 @@ void CNeutrinoApp::channelsInit(bool bOnly)
TVallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
tmp = TVallList->addBouquet(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
delete tmp->channelList;
tmp->channelList = new CChannelList(*TVchannelList);
tmp->channelList->SetChannelList(&TVchannelList->getChannels());
RADIOallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
tmp = RADIOallList->addBouquet(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
delete tmp->channelList;
tmp->channelList = new CChannelList(*RADIOchannelList);
tmp->channelList->SetChannelList(&RADIOchannelList->getChannels());
if(TVsatList) delete TVsatList;
TVsatList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_SATS));