CChannelList: delete and reset minitv object inside unified scope

Origin commit data
------------------
Commit: cf7a21032c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-07 (Sun, 07 May 2017)
This commit is contained in:
2017-05-07 14:18:47 +02:00
parent 4fb21cadc2
commit d7b5cb3caf

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();