Index: Source/modules/webaudio/AudioNode.cpp |
diff --git a/Source/modules/webaudio/AudioNode.cpp b/Source/modules/webaudio/AudioNode.cpp |
index 6733a0df59ec9fa6952b5a9ddf756c5e3784fccc..f640cd4da5afd67746b41cd117b3675ce74c6f45 100644 |
--- a/Source/modules/webaudio/AudioNode.cpp |
+++ b/Source/modules/webaudio/AudioNode.cpp |
@@ -105,6 +105,11 @@ void AudioNode::dispose() |
context()->disposeOutputs(*this); |
for (unsigned i = 0; i < m_outputs.size(); ++i) |
output(i)->disconnectAll(); |
+ |
+ if (context()->contextState() != AudioContext::Running) |
+ return; |
+ ThreadState::current()->markAsZombie(this); |
+ context()->setLastZombie(this); |
} |
String AudioNode::nodeTypeName() const |