Index: Source/platform/audio/HRTFDatabaseLoader.cpp |
diff --git a/Source/platform/audio/HRTFDatabaseLoader.cpp b/Source/platform/audio/HRTFDatabaseLoader.cpp |
index b67b91b376b908103868e81d37ce3ece6d7f3884..8dc1cf3a15bf5e28d80ce6110b985f29383419c0 100644 |
--- a/Source/platform/audio/HRTFDatabaseLoader.cpp |
+++ b/Source/platform/audio/HRTFDatabaseLoader.cpp |
@@ -45,12 +45,10 @@ PassRefPtr<HRTFDatabaseLoader> HRTFDatabaseLoader::createAndLoadAsynchronouslyIf |
{ |
ASSERT(isMainThread()); |
- RefPtr<HRTFDatabaseLoader> loader; |
- |
if (!s_loaderMap) |
s_loaderMap = adoptPtr(new LoaderMap()).leakPtr(); |
- loader = s_loaderMap->get(sampleRate); |
+ RefPtr<HRTFDatabaseLoader> loader = s_loaderMap->get(sampleRate); |
if (loader) { |
ASSERT(sampleRate == loader->databaseSampleRate()); |
return loader; |