Index: Source/core/loader/DocumentLoader.cpp |
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp |
index d8fe8e98cf13aad3ae3c2906a235eaf3996be5ba..83ddc49d44fbb1da20b5fc1e9bf998d2f496947d 100644 |
--- a/Source/core/loader/DocumentLoader.cpp |
+++ b/Source/core/loader/DocumentLoader.cpp |
@@ -52,6 +52,7 @@ |
#include "core/frame/Settings.h" |
#include "platform/Logging.h" |
#include "platform/UserGestureIndicator.h" |
+#include "platform/mhtml/ArchiveResource.h" |
#include "platform/mhtml/ArchiveResourceCollection.h" |
#include "platform/mhtml/MHTMLArchive.h" |
#include "platform/plugins/PluginData.h" |
@@ -622,7 +623,7 @@ void DocumentLoader::addAllArchiveResources(MHTMLArchive* archive) |
{ |
ASSERT(archive); |
if (!m_archiveResourceCollection) |
- m_archiveResourceCollection = adoptPtr(new ArchiveResourceCollection); |
+ m_archiveResourceCollection = ArchiveResourceCollection::create(); |
m_archiveResourceCollection->addAllResources(archive); |
} |