| Index: Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp
|
| ===================================================================
|
| --- Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp (revision 95433)
|
| +++ Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp (working copy)
|
| @@ -52,6 +52,9 @@
|
|
|
| OfflineAudioDestinationNode::~OfflineAudioDestinationNode()
|
| {
|
| + if (m_renderThread)
|
| + waitForThreadCompletion(m_renderThread, 0);
|
| +
|
| uninitialize();
|
| }
|
|
|
| @@ -143,6 +146,8 @@
|
| }
|
|
|
| // Our work is done. Let the AudioContext know.
|
| + // See corresponding deref() call in notifyCompleteDispatch().
|
| + ref();
|
| callOnMainThread(notifyCompleteDispatch, this);
|
| }
|
|
|
| @@ -154,6 +159,7 @@
|
| return;
|
|
|
| destinationNode->notifyComplete();
|
| + destinationNode->deref();
|
| }
|
|
|
| void OfflineAudioDestinationNode::notifyComplete()
|
|
|