From fcc853e0392b3e7167b7d88b8e001f0df626dc0c Mon Sep 17 00:00:00 2001 From: focus Date: Thu, 16 Feb 2012 07:45:33 +0000 Subject: [PATCH] Fix 2108 :) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2109 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/neutrino.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 2f9f678d0..144f5079c 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1198,7 +1198,7 @@ void CNeutrinoApp::channelsInit(bool bOnly) for(zapit_list_it_t it = zapitList.begin(); it != zapitList.end(); it++) RADIOchannelList->putChannel(*it); - CBouquet* hdBouquet; + CBouquet* hdBouquet = NULL; /* all HD channels */ if(g_settings.make_hd_list) { hdBouquet = new CBouquet(0, (char *) "HD", false); @@ -1291,10 +1291,12 @@ void CNeutrinoApp::channelsInit(bool bOnly) TIMER_STOP("[neutrino] tv took"); - if(g_settings.make_hd_list && hi) - TVfavList->Bouquets.push_back(hdBouquet); - else - delete hdBouquet; + if(g_settings.make_hd_list) { + if(hi) + TVfavList->Bouquets.push_back(hdBouquet); + else + delete hdBouquet; + } /* Favorites and provides RADIO bouquets */ bnum = 0;