Bug 1221520 - nullcheck for mSpeechdClient. r=eeejay

This commit is contained in:
Makoto Kato 2015-11-10 19:14:02 +09:00
Родитель 6a05cb9993
Коммит 9130d219ea
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -344,6 +344,10 @@ SpeechDispatcherService::Init()
}
mSpeechdClient = spd_open("firefox", "web speech api", "who", SPD_MODE_THREADED);
if (!mSpeechdClient) {
NS_WARNING("Failed to call spd_open");
return;
}
// Get all the voices from sapi and register in the SynthVoiceRegistry
SPDVoice** list = spd_list_synthesis_voices(mSpeechdClient);