Bug 1221520 - nullcheck for mSpeechdClient. r=eeejay

This commit is contained in:
Makoto Kato 2015-11-10 19:14:02 +09:00
parent 6a05cb9993
commit 9130d219ea

View File

@ -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);