From e9e16b1d8da953a0a6f1bc35f50da47d0d0c5de3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 7 May 2017 14:18:47 +0200 Subject: [PATCH] CChannelList: delete and reset minitv object inside unified scope Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/cf7a21032c3a43c4c89fac537ca14fec3fdfe5ac Author: Thilo Graf Date: 2017-05-07 (Sun, 07 May 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 5ab87058e..841d52990 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -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();