| Index: third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| index 212b495db59cbeded62532ba0ee5dc4ed810f360..1e2504bc64c4c572c16890fc7852beb4143ece03 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| @@ -463,6 +463,8 @@ static void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance,
|
| return;
|
| }
|
|
|
| + message->unregisterMemoryAllocatedByCurrentScriptContext();
|
| +
|
| // FIXME: Only pass scriptState/exceptionState if instance really requires it.
|
| ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
| instance->postMessage(scriptState, message.release(), transferables.messagePorts, exceptionState);
|
|
|