summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-07-05 12:37:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-07-05 12:46:07 +0200
commitea7386f9f98075905bf92fdfc030451ead3ed2e0 (patch)
treeee951d5b24ce55051ca00b52a635004a9227ba1b /tracker-easy/tracker-easy.cpp
parent9e036ed903406f11d875bf73b459222b6b051a28 (diff)
tracker/easy: fix crash on quick exit
Avoid a crash when `cv::destroyWindow()` gets called before `Tracker::Tick()' ever gets to run.
Diffstat (limited to 'tracker-easy/tracker-easy.cpp')
-rw-r--r--tracker-easy/tracker-easy.cpp2
1 files changed, 2 insertions, 0 deletions
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()