Bug 1195051 - Part 4: Fix a null pointer crash happening after the destination node gets CCed

Landed on a CLOSED TREE
This commit is contained in:
Ehsan Akhgari 2015-08-17 11:44:32 -04:00
Родитель 7291d73485
Коммит 5e993ab31c
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -543,7 +543,12 @@ AudioDestinationNode::WindowAudioCaptureChanged()
return NS_OK;
}
bool captured = GetOwner()->GetAudioCaptured();
nsCOMPtr<nsPIDOMWindow> ownerWindow = GetOwner();
if (!ownerWindow) {
return NS_OK;
}
bool captured = ownerWindow->GetAudioCaptured();
if (captured != mCaptured) {
if (captured) {