From b8bd73af8fe7cc638349d59edb347307e4a6dc51 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/41299cf7d963eeb1c31a32c353bdb09ff2ee497c Author: Stefan Seyfried Date: 2013-04-14 (Sun, 14 Apr 2013) --- 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; } }