Index: Source/core/dom/MessagePort.cpp |
diff --git a/Source/core/dom/MessagePort.cpp b/Source/core/dom/MessagePort.cpp |
index 4ecd86d9b6094baedd9c9ab3a9a4089a98736711..5ff78966227c2ff888b98841ed161684842a815b 100644 |
--- a/Source/core/dom/MessagePort.cpp |
+++ b/Source/core/dom/MessagePort.cpp |
@@ -44,7 +44,7 @@ namespace WebCore { |
PassRefPtr<MessagePort> MessagePort::create(ExecutionContext& executionContext) |
{ |
- RefPtr<MessagePort> port = adoptRef(new MessagePort(executionContext)); |
+ RefPtrWillBeRawPtr<MessagePort> port = adoptRefWillBeRefCountedGarbageCollected(new MessagePort(executionContext)); |
port->suspendIfNeeded(); |
return port.release(); |
} |