CChannelList: delete and reset minitv object inside unified scope

Origin commit data
------------------
Branch: ni/coolstream
Commit: cf7a21032c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-07 (Sun, 07 May 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2017-05-07 14:18:47 +02:00
parent 5a54326fe2
commit e9e16b1d8d

View File

@@ -949,9 +949,9 @@ void CChannelList::hide()
paint_events(-2); // cancel paint_events thread
if ((g_settings.channellist_additional == 2) || (previous_channellist_additional == 2)) // with miniTV
{
if (cc_minitv)
delete cc_minitv;
cc_minitv = NULL;
if (cc_minitv){
delete cc_minitv; cc_minitv = NULL;
}
}
if(header)
header->kill();