neutrino.cpp: fix memleak in channelsInit

Origin commit data
------------------
Commit: a2caf42de4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-03 (Thu, 03 May 2012)
This commit is contained in:
[CST] Focus
2012-05-03 18:25:10 +04:00
parent 805dd389e1
commit 85d5b572ec

View File

@@ -1230,11 +1230,13 @@ 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->SortAlpha();
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->SortAlpha();