diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-15 19:17:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-15 19:17:29 +0100 |
commit | a7f72b988b2036892f7219b90f5b094c8b9c2092 (patch) | |
tree | cf35462f859824fc3687d405f92aa3817fc8cd91 /facetracknoir/facetracknoir.cpp | |
parent | 698b9f80810861693183e7a0fd2899560c741bd5 (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/facetracknoir.cpp')
-rw-r--r-- | facetracknoir/facetracknoir.cpp | 8 |
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; |