diff --git a/src/Audio/AudioOutput.cc b/src/Audio/AudioOutput.cc index 6a9e9411ead75b36809ff536b0cd2231dc269f8c..cb04eb60876d8aa289fe7b43fa1324179075b996 100644 --- a/src/Audio/AudioOutput.cc +++ b/src/Audio/AudioOutput.cc @@ -18,8 +18,8 @@ AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox) : QGCTool(app, toolbox) + , _tts(new QTextToSpeech(this)) { - _tts = new QTextToSpeech(this); connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged); }