From 47a52eb2704bfb0b9d73b4a5e05fa7f05d7fdec8 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/bd22ca249746ba59e018a5cfb41ac25629bd7157 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 93afcd382..8750925a7 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; } }