Index: Source/core/workers/SharedWorkerGlobalScope.cpp |
diff --git a/Source/core/workers/SharedWorkerGlobalScope.cpp b/Source/core/workers/SharedWorkerGlobalScope.cpp |
index 96188b4dbcb70810403f8c85d45458bb75732780..bd1f42a322275bb000cf64831f3c2013b7fdf28f 100644 |
--- a/Source/core/workers/SharedWorkerGlobalScope.cpp |
+++ b/Source/core/workers/SharedWorkerGlobalScope.cpp |
@@ -44,7 +44,7 @@ namespace WebCore { |
PassRefPtrWillBeRawPtr<MessageEvent> createConnectEvent(PassRefPtrWillBeRawPtr<MessagePort> prpPort) |
{ |
RefPtrWillBeRawPtr<MessagePort> port = prpPort; |
- RefPtrWillBeRawPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, port)), String(), String(), port); |
+ RefPtrWillBeRawPtr<MessageEvent> event = MessageEvent::create(adoptPtrWillBeNoop(new MessagePortArray(1, port)), String(), String(), port); |
event->initEvent(EventTypeNames::connect, false, false); |
return event.release(); |
} |