summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/nsHttpConnectionMgr.cpp
diff options
context:
space:
mode:
authorHonza Bambas <honzab.moz@firemni.cz>2019-07-20 15:36:09 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 12:21:14 +0200
commit8010b73f0aa63bd0443984a65cfb2f464a9eeb66 (patch)
tree32866b90e36effcb58ed9a89e39dce087da73d71 /netwerk/protocol/http/nsHttpConnectionMgr.cpp
parent2e1267ed95da1db2705adf4d1c17d72783821a31 (diff)
downloadUXP-8010b73f0aa63bd0443984a65cfb2f464a9eeb66.tar
UXP-8010b73f0aa63bd0443984a65cfb2f464a9eeb66.tar.gz
UXP-8010b73f0aa63bd0443984a65cfb2f464a9eeb66.tar.lz
UXP-8010b73f0aa63bd0443984a65cfb2f464a9eeb66.tar.xz
UXP-8010b73f0aa63bd0443984a65cfb2f464a9eeb66.zip
Bug 1548822.
Diffstat (limited to 'netwerk/protocol/http/nsHttpConnectionMgr.cpp')
-rw-r--r--netwerk/protocol/http/nsHttpConnectionMgr.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
index 43081f19a..71c19a9ec 100644
--- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp
+++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
@@ -373,8 +373,12 @@ nsHttpConnectionMgr::VerifyTraffic()
nsresult
nsHttpConnectionMgr::DoShiftReloadConnectionCleanup(nsHttpConnectionInfo *aCI)
{
+ RefPtr<nsHttpConnectionInfo> ci;
+ if (aCI) {
+ ci = aCI->Clone();
+ }
return PostEvent(&nsHttpConnectionMgr::OnMsgDoShiftReloadConnectionCleanup,
- 0, aCI);
+ 0, ci);
}
class SpeculativeConnectArgs : public ARefBase
@@ -507,8 +511,8 @@ nsresult
nsHttpConnectionMgr::ProcessPendingQ(nsHttpConnectionInfo* aCI)
{
LOG(("nsHttpConnectionMgr::ProcessPendingQ [ci=%s]\n", aCI->HashKey().get()));
- RefPtr<nsHttpConnectionInfo> ci;
- if (aCI) {
+ RefPtr<nsHttpConnectionInfo> ci;
+ if (aCI) {
ci = aCI->Clone();
}
return PostEvent(&nsHttpConnectionMgr::OnMsgProcessPendingQ, 0, ci);