From a2caf42de462a19bb1036f3a9bf595006797ea9a Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 3 May 2012 18:25:10 +0400 Subject: [PATCH] neutrino.cpp: fix memleak in channelsInit --- src/neutrino.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index ec3eb6454..dde094b39 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -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();