mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1118535 - Don't let PBackgroundChild actors leak HANDLEs on Windows, r=mrbkap.
This commit is contained in:
parent
2f67d9ecf5
commit
6ba66bae33
@ -439,6 +439,11 @@ private:
|
||||
threadLocalInfo->mActor->Close();
|
||||
threadLocalInfo->mActor->AssertActorDestroyed();
|
||||
|
||||
ProcessHandle otherProcess = threadLocalInfo->mActor->OtherProcess();
|
||||
if (otherProcess != kInvalidProcessHandle) {
|
||||
base::CloseProcessHandle(otherProcess);
|
||||
}
|
||||
|
||||
// Since the actor is created on the main thread it must only
|
||||
// be released on the main thread as well.
|
||||
if (!NS_IsMainThread()) {
|
||||
|
Loading…
Reference in New Issue
Block a user