summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-15 19:17:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-15 19:17:29 +0100
commita7f72b988b2036892f7219b90f5b094c8b9c2092 (patch)
treecf35462f859824fc3687d405f92aa3817fc8cd91 /facetracknoir
parent698b9f80810861693183e7a0fd2899560c741bd5 (diff)
free dialog windows on tracking stoppage
This is necessary to make tracker dialogs non-modal, as otherwise invalid casts occur.
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/facetracknoir.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index c7ef4c13..640672a4 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -409,12 +409,20 @@ void FaceTrackNoIR::stopTracker( ) {
if (pTrackerDialog) {
pTrackerDialog->unRegisterTracker();
+ delete pTrackerDialog;
+ pTrackerDialog = nullptr;
}
if (pProtocolDialog) {
pProtocolDialog->unRegisterProtocol();
+ delete pProtocolDialog;
+ pProtocolDialog = nullptr;
}
if (pFilterDialog)
+ {
pFilterDialog->unregisterFilter();
+ delete pFilterDialog;
+ pFilterDialog = nullptr;
+ }
if ( tracker ) {
delete tracker;