| Index: Source/platform/audio/HRTFDatabaseLoader.cpp
|
| diff --git a/Source/platform/audio/HRTFDatabaseLoader.cpp b/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| index a64f0ddbfb449dafb27502d0c02b9e69d0fb795b..38d2d1763f95e30caa651f87b256ba5118a268a1 100644
|
| --- a/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| +++ b/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| @@ -35,6 +35,7 @@
|
| #include "platform/Task.h"
|
| #include "public/platform/Platform.h"
|
| #include "wtf/MainThread.h"
|
| +#include "wtf/UnretainedPtr.h"
|
|
|
| namespace blink {
|
|
|
| @@ -94,7 +95,7 @@ void HRTFDatabaseLoader::loadAsynchronously()
|
| if (!m_hrtfDatabase && !m_databaseLoaderThread) {
|
| // Start the asynchronous database loading process.
|
| m_databaseLoaderThread = adoptPtr(Platform::current()->createThread("HRTF database loader"));
|
| - m_databaseLoaderThread->postTask(new Task(WTF::bind(&HRTFDatabaseLoader::load, this)));
|
| + m_databaseLoaderThread->postTask(new Task(WTF::bind(&HRTFDatabaseLoader::load, UnretainedPtr<HRTFDatabaseLoader>(this))));
|
| }
|
| }
|
|
|
|
|