Index: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
index c9bcc0472ff271edc9bce2bebaa0473765ea6e40..ed8330b9afa2e06f0994c9db8bec9ea4161ab45c 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -284,8 +284,9 @@ void V8Window::postMessageMethodCustom( |
if (exceptionState.hadException()) |
return; |
- window->postMessage(message.release(), transferables.messagePorts, |
- targetOrigin, source, exceptionState); |
+ window->postMessage(message.get(), transferables.messagePorts, targetOrigin, |
+ source, exceptionState); |
+ message->unregisterMemoryAllocatedByCurrentScriptContext(); |
} |
void V8Window::openMethodCustom( |