diff --git a/netwerk/protocol/http/src/nsHTTPRequest.cpp b/netwerk/protocol/http/src/nsHTTPRequest.cpp index 410d5651a564..a3faedba5095 100644 --- a/netwerk/protocol/http/src/nsHTTPRequest.cpp +++ b/netwerk/protocol/http/src/nsHTTPRequest.cpp @@ -554,7 +554,7 @@ nsresult nsHTTPRequest::SetTransport(nsIChannel *aTransport) nsresult nsHTTPRequest::ReleaseTransport(nsIChannel *aTransport) { - if (aTransport == mTransport) { + if (aTransport == mTransport.get()) { mTransport = 0; } return NS_OK;