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 ed8330b9afa2e06f0994c9db8bec9ea4161ab45c..915102948d8251d2f6a80673b9c5daf47e590ea2 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -284,9 +284,9 @@ void V8Window::postMessageMethodCustom( |
if (exceptionState.hadException()) |
return; |
+ message->unregisterMemoryAllocatedWithCurrentScriptContext(); |
window->postMessage(message.get(), transferables.messagePorts, targetOrigin, |
source, exceptionState); |
- message->unregisterMemoryAllocatedByCurrentScriptContext(); |
} |
void V8Window::openMethodCustom( |