From 85d5b572ec37f721e6a6cef110cd1509ec3049bf 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a2caf42de462a19bb1036f3a9bf595006797ea9a Author: [CST] Focus Date: 2012-05-03 (Thu, 03 May 2012) --- 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();