From ea7386f9f98075905bf92fdfc030451ead3ed2e0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Jul 2019 12:37:37 +0200 Subject: tracker/easy: fix crash on quick exit Avoid a crash when `cv::destroyWindow()` gets called before `Tracker::Tick()' ever gets to run. --- tracker-easy/tracker-easy.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tracker-easy/tracker-easy.cpp') diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp index fbc19dea..5c1c8684 100644 --- a/tracker-easy/tracker-easy.cpp +++ b/tracker-easy/tracker-easy.cpp @@ -84,6 +84,8 @@ namespace EasyTracker UpdateModel(); UpdateSettings(); + + cv::namedWindow("Preview"); } Tracker::~Tracker() -- cgit v1.2.3