| Index: Source/modules/webaudio/AudioNode.cpp
|
| diff --git a/Source/modules/webaudio/AudioNode.cpp b/Source/modules/webaudio/AudioNode.cpp
|
| index f325bee4b7fe0be99a585a1d78a51af7652f371f..1c5a36948c400e23a59a0449465a632e94fbfbb1 100644
|
| --- a/Source/modules/webaudio/AudioNode.cpp
|
| +++ b/Source/modules/webaudio/AudioNode.cpp
|
| @@ -586,16 +586,12 @@ void AudioNode::breakConnection()
|
|
|
| void AudioNode::breakConnectionWithLock()
|
| {
|
| -#if ENABLE(OILPAN)
|
| atomicDecrement(&m_connectionRefCount);
|
| - if (m_connectionRefCount == 0)
|
| - disableOutputsIfNecessary();
|
| -#else
|
| +#if !ENABLE(OILPAN)
|
| ASSERT(m_normalRefCount > 0);
|
| - atomicDecrement(&m_connectionRefCount);
|
| - if (m_connectionRefCount == 0 && m_normalRefCount > 1)
|
| - disableOutputsIfNecessary();
|
| #endif
|
| + if (!m_connectionRefCount)
|
| + disableOutputsIfNecessary();
|
| }
|
|
|
| #if !ENABLE(OILPAN)
|
|
|