mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 20:13:00 +00:00
Bug 1153915 - Null check the window in AudioChannelService::WindowDestroyedEnumerator(); r=baku
This commit is contained in:
parent
5ab8ccdeac
commit
9e824d6fa4
@ -792,7 +792,7 @@ AudioChannelService::WindowDestroyedEnumerator(AudioChannelAgent* aAgent,
|
||||
MOZ_ASSERT(data);
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aAgent->Window());
|
||||
if (!window->IsInnerWindow()) {
|
||||
if (window && !window->IsInnerWindow()) {
|
||||
window = window->GetCurrentInnerWindow();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user