mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
neutrino.cpp: fix memleak in channelsInit
This commit is contained in:
@@ -1230,11 +1230,13 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
|
|
||||||
TVallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
|
TVallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
|
||||||
tmp = TVallList->addBouquet(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 = new CChannelList(*TVchannelList);
|
||||||
tmp->channelList->SortAlpha();
|
tmp->channelList->SortAlpha();
|
||||||
|
|
||||||
RADIOallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
|
RADIOallList = new CBouquetList(g_Locale->getText(LOCALE_CHANNELLIST_HEAD));
|
||||||
tmp = RADIOallList->addBouquet(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 = new CChannelList(*RADIOchannelList);
|
||||||
tmp->channelList->SortAlpha();
|
tmp->channelList->SortAlpha();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user