Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
index 0957206f03f80460381ac266a4bf48e5aee94d3a..8beea08cbcdda8e7b55f8d57890f68315abf9bed 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
@@ -3751,8 +3751,10 @@ void HTMLMediaElement::rejectPlayPromises(ExceptionCode code, const String& mess |
void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
{ |
- if (!ThreadHeap::isHeapObjectAlive(m_audioSourceNode)) |
+ if (!ThreadHeap::isHeapObjectAlive(m_audioSourceNode)) { |
getAudioSourceProvider().setClient(nullptr); |
+ m_audioSourceNode = nullptr; |
+ } |
} |
void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* provider) |