Commit 3980e798 authored by andersca@apple.com's avatar andersca@apple.com

Fix crash that was introduced in r85515.

* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::dispatchSyncMessage):
If didReceiveSyncMessage returns ManualReply, the client took ownership of the reply
encoder so we must leak it to avoid a double-free.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 43efb08f
2011-05-02 Anders Carlsson <andersca@apple.com>
Fix crash that was introduced in r85515.
* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::dispatchSyncMessage):
If didReceiveSyncMessage returns ManualReply, the client took ownership of the reply
encoder so we must leak it to avoid a double-free.
2011-05-02 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
......
......@@ -641,7 +641,9 @@ void Connection::dispatchSyncMessage(MessageID messageID, ArgumentDecoder* argum
if (syncReplyMode == ManualReply) {
// The client will take ownership of the reply encoder and send it at some point in the future.
// We won't do anything here.
ArgumentEncoder *encoder = replyEncoder.leakPtr();
(void)encoder;
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment