summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_nacl.cc
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 18:18:33 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 18:18:33 +0000
commit19d3a3e8947ce0e76bf2134a5f9c51d51a89ce49 (patch)
treee46239401c71df7152aa47d24177c26773a910a4 /ipc/ipc_channel_nacl.cc
parent2306303ade2ec3f85354623a55015ac674f0f947 (diff)
downloadchromium_src-19d3a3e8947ce0e76bf2134a5f9c51d51a89ce49.zip
chromium_src-19d3a3e8947ce0e76bf2134a5f9c51d51a89ce49.tar.gz
chromium_src-19d3a3e8947ce0e76bf2134a5f9c51d51a89ce49.tar.bz2
PPAPI/NaCl: Fix double-delete in ipc_channel_nacl
BUG=116317 TEST= R=bbudge Review URL: https://chromiumcodereview.appspot.com/10545101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_nacl.cc')
-rw-r--r--ipc/ipc_channel_nacl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc
index 0a4c0a3..47f895a 100644
--- a/ipc/ipc_channel_nacl.cc
+++ b/ipc/ipc_channel_nacl.cc
@@ -177,10 +177,10 @@ bool Channel::ChannelImpl::Send(Message* message) {
scoped_ptr<Message> message_ptr(message);
#ifdef IPC_MESSAGE_LOG_ENABLED
- Logging::GetInstance()->OnSendMessage(message, "");
+ Logging::GetInstance()->OnSendMessage(message_ptr.get(), "");
#endif // IPC_MESSAGE_LOG_ENABLED
- output_queue_.push_back(linked_ptr<Message>(message));
+ output_queue_.push_back(linked_ptr<Message>(message_ptr.release()));
if (!waiting_connect_)
return ProcessOutgoingMessages();