Index: Source/modules/websockets/WebSocket.cpp |
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp |
index 9ca260909c2e720b0525abdf28f09e6dc91cd4d5..dd89ab42067c50a3c9e69d6be352a6332601f77c 100644 |
--- a/Source/modules/websockets/WebSocket.cpp |
+++ b/Source/modules/websockets/WebSocket.cpp |
@@ -45,6 +45,7 @@ |
#include "core/frame/DOMWindow.h" |
#include "core/frame/Frame.h" |
#include "core/inspector/ScriptCallStack.h" |
+#include "heap/Handle.h" |
#include "modules/websockets/CloseEvent.h" |
#include "platform/Logging.h" |
#include "platform/blob/BlobData.h" |
@@ -627,7 +628,7 @@ void WebSocket::didReceiveBinaryData(PassOwnPtr<Vector<char> > binaryData) |
binaryData->swap(*rawData->mutableData()); |
OwnPtr<BlobData> blobData = BlobData::create(); |
blobData->appendData(rawData.release(), 0, BlobDataItem::toEndOfFile); |
- RefPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size)); |
+ RefPtrWillBeRawPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size)); |
m_eventQueue->dispatch(MessageEvent::create(blob.release(), SecurityOrigin::create(m_url)->toString())); |
break; |
} |