From 41299cf7d963eeb1c31a32c353bdb09ff2ee497c Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 14 Apr 2013 19:13:31 +0200 Subject: [PATCH] CInfoViewerBB: avoid crash in destructor --- src/gui/infoviewer_bb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index f25ca307b..a493970c9 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -128,9 +128,10 @@ CInfoViewerBB::~CInfoViewerBB() pthread_cancel(scrambledT); scrambledT = 0; } - if(hddperT) { + if(hddperTflag) { pthread_cancel(hddperT); hddperT = 0; + hddperTflag = false; } }