mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1147446: Chromium patch to fix memory leak in Windows sandbox sharedmem_ipc_server.cc. r=aklotz
This commit is contained in:
parent
d5acb1e8d0
commit
e7768682a2
@ -59,6 +59,9 @@ SharedMemIPCServer::~SharedMemIPCServer() {
|
||||
::CloseHandle(context->pong_event);
|
||||
delete context;
|
||||
}
|
||||
|
||||
if (client_control_)
|
||||
::UnmapViewOfFile(client_control_);
|
||||
}
|
||||
|
||||
bool SharedMemIPCServer::Init(void* shared_mem, uint32 shared_size,
|
||||
@ -230,7 +233,7 @@ bool SharedMemIPCServer::InvokeCallback(const ServerControl* service_context,
|
||||
return false;
|
||||
|
||||
uint32 tag = params->GetTag();
|
||||
COMPILE_ASSERT(0 == INVALID_TYPE, Incorrect_type_enum);
|
||||
static_assert(0 == INVALID_TYPE, "incorrect type enum");
|
||||
IPCParams ipc_params = {0};
|
||||
ipc_params.ipc_tag = tag;
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
Chromium Commit Directory / File (relative to security/sandbox/)
|
||||
---------------------------------------- ------------------------------------------------
|
||||
df7cc6c04725630dd4460f29d858a77507343b24 chromium
|
||||
b533d6533585377edd63ec6500469f6c4fba602a chromium/sandbox/win/src/sharedmem_ipc_server.cc
|
||||
|
Loading…
Reference in New Issue
Block a user