Commit 87969022 authored by Lorenz Meier's avatar Lorenz Meier

More rigor in thread tear down

parent 4abafb46
......@@ -77,10 +77,8 @@ GAudioOutput::~GAudioOutput()
while (thread->isRunning()) {
QGC::SLEEP::usleep(100);
}
worker->deleteLater();
thread->deleteLater();
worker = NULL;
thread = NULL;
delete worker;
delete thread;
}
......
......@@ -90,6 +90,7 @@ QGCAudioWorker::~QGCAudioWorker()
pVoice = NULL;
::CoUninitialize();
#endif
delete emergencyTimer;
}
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