From 5a7cfe74528e4650c12da1702ec9b02eb456b46d Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Sun, 28 Sep 2014 08:35:39 +0200 Subject: [PATCH] CChannelList: Fix OSD error when exit the zap history Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2ae4e4819b6109e9ccb200481414686ee70cecd5 Author: Michael Liebmann Date: 2014-09-28 (Sun, 28 Sep 2014) --- src/gui/channellist.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 58bef2afe..a8e295fa1 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -137,11 +137,9 @@ CChannelList::~CChannelList() cc_minitv = NULL; } if (headerClock) { - headerClock->Stop(); - if (headerClock->isPainted()) - headerClock->hide(); - if (headerClock->isClockRun()) - headerClock->stopThread(); + headerClock->clearSavedScreen(); + delete headerClock; + headerClock = NULL; } if (CChannelLogo) { @@ -1020,7 +1018,7 @@ void CChannelList::hide() } if (headerClock) { if (headerClock->Stop()) - headerClock->kill(); + headerClock->hide(); } frameBuffer->paintBackgroundBoxRel(x, y, full_width, height + info_height); clearItem2DetailsLine();