mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Slight tweak per biesi's comments. Bug 343850
This commit is contained in:
parent
090f21ab6c
commit
535042aed4
@ -752,11 +752,12 @@ nsJSChannel::OnStopRequest(nsIRequest* aRequest,
|
||||
nsISupports* aContext,
|
||||
nsresult aStatus)
|
||||
{
|
||||
NS_ENSURE_TRUE(aRequest == mStreamChannel, NS_ERROR_UNEXPECTED);
|
||||
|
||||
// Make sure to drop our ref to mListener
|
||||
nsCOMPtr<nsIStreamListener> listener;
|
||||
listener.swap(mListener);
|
||||
|
||||
NS_ENSURE_TRUE(aRequest == mStreamChannel, NS_ERROR_UNEXPECTED);
|
||||
return listener->OnStopRequest(this, aContext, aStatus);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user