diff options
Diffstat (limited to 'tracker-easy/tracker-easy.cpp')
-rw-r--r-- | tracker-easy/tracker-easy.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp index 211eb267..fbc19dea 100644 --- a/tracker-easy/tracker-easy.cpp +++ b/tracker-easy/tracker-easy.cpp @@ -88,10 +88,11 @@ namespace EasyTracker Tracker::~Tracker() { - cv::destroyWindow("Preview"); - iThread.exit(); iThread.wait(); + + if (iDebug) + cv::destroyWindow("Preview"); if (camera) { |