Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3432)

Unified Diff: Source/modules/webaudio/AudioContext.cpp

Issue 711323002: Oilpan: Don't destruct HRTFDatabaseLoader::m_thread during a sweeping phase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/webaudio/AudioContext.cpp
diff --git a/Source/modules/webaudio/AudioContext.cpp b/Source/modules/webaudio/AudioContext.cpp
index c1d45883a7f99bd9e34b01772d072da9836b246e..c813e0e6c1c595be28b4dfd87749eca2b0d12de6 100644
--- a/Source/modules/webaudio/AudioContext.cpp
+++ b/Source/modules/webaudio/AudioContext.cpp
@@ -199,6 +199,9 @@ void AudioContext::uninitialize()
// Get rid of the sources which may still be playing.
derefUnfinishedSourceNodes();
+ ASSERT(m_listener);
+ m_listener->waitForHRTFDatabaseLoaderThreadCompletion();
+
m_isInitialized = false;
clear();
}
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioListener.cpp » ('j') | Source/platform/audio/HRTFDatabaseLoader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698