From 32192e466dc3153f5874123b51f012ef9e562ff4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Jan 2014 22:41:53 +0100 Subject: also free the second tracker's dialog window --- facetracknoir/facetracknoir.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index 640672a4..98c8c2c2 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -423,6 +423,12 @@ void FaceTrackNoIR::stopTracker( ) { delete pFilterDialog; pFilterDialog = nullptr; } + if (pSecondTrackerDialog) + { + pSecondTrackerDialog->unRegisterTracker(); + delete pSecondTrackerDialog; + pSecondTrackerDialog = nullptr; + } if ( tracker ) { delete tracker; -- cgit v1.2.3