Bug 1223734 - AudioChannelService should not be re-initialized after the XPCOM shutdown, r=smaug

This commit is contained in:
Andrea Marchesini
2015-11-16 17:34:52 +00:00
parent c23dd8c671
commit 0b4b3db183
8 changed files with 47 additions and 19 deletions

View File

@@ -1108,7 +1108,7 @@ ParticularProcessPriorityManager::ComputePriority()
}
RefPtr<AudioChannelService> service = AudioChannelService::GetOrCreate();
if (service->ProcessContentOrNormalChannelIsActive(ChildID())) {
if (service && service->ProcessContentOrNormalChannelIsActive(ChildID())) {
return PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE;
}