Bug 1643382 - P1: BackgroundDataBridgeChild and HttpBackgroundChannelChild don't need to be a cycle r=dragana

Differential Revision: https://phabricator.services.mozilla.com/D79254
This commit is contained in:
Kershaw Chang
2020-06-18 09:28:33 +00:00
parent 47c29ca063
commit c03bf62590
5 changed files with 35 additions and 25 deletions

View File

@@ -176,6 +176,11 @@ void SocketProcessChild::CleanUp() {
iter.Data()->Close();
}
}
{
MutexAutoLock lock(mMutex);
mBackgroundDataBridgeMap.Clear();
}
NS_ShutdownXPCOM(nullptr);
}