Reviewed by Maciej Stachowiak.
Fix a shared memory leak
https://bugs.webkit.org/show_bug.cgi?id=53800
Move the send right representing the shared memory.
* Platform/mac/SharedMemoryMac.cpp:
(WebKit::SharedMemory::Handle::encode):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77658
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-02-04 Anders Carlsson <andersca@apple.com>
+
+ Reviewed by Maciej Stachowiak.
+
+ Fix a shared memory leak
+ https://bugs.webkit.org/show_bug.cgi?id=53800
+
+ Move the send right representing the shared memory.
+
+ * Platform/mac/SharedMemoryMac.cpp:
+ (WebKit::SharedMemory::Handle::encode):
+
2011-02-04 Brady Eidson <beidson@apple.com>
Reviewed by Anders Carlsson.
void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
{
encoder->encodeUInt64(m_size);
- encoder->encode(CoreIPC::MachPort(m_port, MACH_MSG_TYPE_COPY_SEND));
+ encoder->encode(CoreIPC::MachPort(m_port, MACH_MSG_TYPE_MOVE_SEND));
m_port = MACH_PORT_NULL;
}