Index: Source/modules/webaudio/AudioNodeOutput.cpp |
diff --git a/Source/modules/webaudio/AudioNodeOutput.cpp b/Source/modules/webaudio/AudioNodeOutput.cpp |
index 0a1e5084f4d37c72e5dc4ad7bfd6bac51f660301..1eb96782ef1abf069da6f3f1a169f9fa1b7f3f4d 100644 |
--- a/Source/modules/webaudio/AudioNodeOutput.cpp |
+++ b/Source/modules/webaudio/AudioNodeOutput.cpp |
@@ -47,7 +47,7 @@ AudioNodeOutput::AudioNodeOutput(AudioNode* node, unsigned numberOfChannels) |
{ |
ASSERT(numberOfChannels <= AudioContext::maxNumberOfChannels()); |
- m_internalBus = adoptRef(new AudioBus(numberOfChannels, AudioNode::ProcessingSizeInFrames)); |
+ m_internalBus = AudioBus::create(numberOfChannels, AudioNode::ProcessingSizeInFrames); |
} |
void AudioNodeOutput::setNumberOfChannels(unsigned numberOfChannels) |
@@ -71,7 +71,7 @@ void AudioNodeOutput::updateInternalBus() |
if (numberOfChannels() == m_internalBus->numberOfChannels()) |
return; |
- m_internalBus = adoptRef(new AudioBus(numberOfChannels(), AudioNode::ProcessingSizeInFrames)); |
+ m_internalBus = AudioBus::create(numberOfChannels(), AudioNode::ProcessingSizeInFrames); |
} |
void AudioNodeOutput::updateRenderingState() |