Title: [95434] branches/chromium/874/Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp
- Revision
- 95434
- Author
- infe...@chromium.org
- Date
- 2011-09-19 10:12:14 -0700 (Mon, 19 Sep 2011)
Log Message
Merge 94984
BUG=96150
Review URL: http://codereview.chromium.org/7944005
Modified Paths
Diff
Modified: branches/chromium/874/Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp (95433 => 95434)
--- branches/chromium/874/Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp 2011-09-19 17:09:07 UTC (rev 95433)
+++ branches/chromium/874/Source/WebCore/webaudio/OfflineAudioDestinationNode.cpp 2011-09-19 17:12:14 UTC (rev 95434)
@@ -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()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes