mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1221520 - nullcheck for mSpeechdClient. r=eeejay
This commit is contained in:
parent
6a05cb9993
commit
9130d219ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user