Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -786,6 +786,14 @@ void Application::aboutToQuit() { · 785 unmodified lines | |||
| 786 | } | 786 | } |
| 787 | 787 | ||
| 788 | void Application::cleanupBeforeQuit() { | 788 | void Application::cleanupBeforeQuit() { |
| 789 | // Terminate third party processes so that they're not left running in the event of a subsequent shutdown crash | ||
| 790 | #ifdef HAVE_DDE | ||
| 791 | DependencyManager::destroy<DdeFaceTracker>(); | ||
| 792 | #endif | ||
| 793 | #ifdef HAVE_IVIEWHMD | ||
| 794 | DependencyManager::destroy<EyeTracker>(); | ||
| 795 | #endif | ||
| 796 | |||
| 789 | if (_keyboardFocusHighlightID > 0) { | 797 | if (_keyboardFocusHighlightID > 0) { |
| 790 | getOverlays().deleteOverlay(_keyboardFocusHighlightID); | 798 | getOverlays().deleteOverlay(_keyboardFocusHighlightID); |
| 791 | _keyboardFocusHighlightID = -1; | 799 | _keyboardFocusHighlightID = -1; |
| @@ -833,13 +841,6 @@ void Application::cleanupBeforeQuit() { · 41 unmodified lines | |||
| 833 | 841 | ||
| 834 | // destroy the AudioClient so it and its thread have a chance to go down safely | 842 | // destroy the AudioClient so it and its thread have a chance to go down safely |
| 835 | DependencyManager::destroy<AudioClient>(); | 843 | DependencyManager::destroy<AudioClient>(); |
| 836 | |||
| 837 | #ifdef HAVE_DDE | ||
| 838 | DependencyManager::destroy<DdeFaceTracker>(); | ||
| 839 | #endif | ||
| 840 | #ifdef HAVE_IVIEWHMD | ||
| 841 | DependencyManager::destroy<EyeTracker>(); | ||
| 842 | #endif | ||
| 843 | } | 844 | } |
| 844 | 845 | ||
| 845 | void Application::emptyLocalCache() { | 846 | void Application::emptyLocalCache() { |