Bug 1367075 - AudioChannelService doesn't need to be unregistered as observer for ipc:content-shutdown, r=alwu

This commit is contained in:
Andrea Marchesini 2017-05-24 07:31:58 +02:00
parent bf4efb28a8
commit c6a0819b83

View File

@ -285,10 +285,6 @@ AudioChannelService::Shutdown()
if (obs) { if (obs) {
obs->RemoveObserver(gAudioChannelService, "xpcom-shutdown"); obs->RemoveObserver(gAudioChannelService, "xpcom-shutdown");
obs->RemoveObserver(gAudioChannelService, "outer-window-destroyed"); obs->RemoveObserver(gAudioChannelService, "outer-window-destroyed");
if (IsParentProcess()) {
obs->RemoveObserver(gAudioChannelService, "ipc:content-shutdown");
}
} }
gAudioChannelService->mWindows.Clear(); gAudioChannelService->mWindows.Clear();