Commit 87969022 authored by Lorenz Meier's avatar Lorenz Meier

More rigor in thread tear down

parent 4abafb46
...@@ -77,10 +77,8 @@ GAudioOutput::~GAudioOutput() ...@@ -77,10 +77,8 @@ GAudioOutput::~GAudioOutput()
while (thread->isRunning()) { while (thread->isRunning()) {
QGC::SLEEP::usleep(100); QGC::SLEEP::usleep(100);
} }
worker->deleteLater(); delete worker;
thread->deleteLater(); delete thread;
worker = NULL;
thread = NULL;
} }
......
...@@ -90,6 +90,7 @@ QGCAudioWorker::~QGCAudioWorker() ...@@ -90,6 +90,7 @@ QGCAudioWorker::~QGCAudioWorker()
pVoice = NULL; pVoice = NULL;
::CoUninitialize(); ::CoUninitialize();
#endif #endif
delete emergencyTimer;
} }
void QGCAudioWorker::say(QString text, int severity) void QGCAudioWorker::say(QString text, int severity)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment