mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Fix a small memory leak in OnStopRequest introduced by earlier checkins
This commit is contained in:
parent
d60b972e28
commit
eae17b4d91
@ -571,7 +571,10 @@ nsHTTPPipelinedRequest::WriteRequest ()
|
||||
mAttempts ? TRANSPORT_OPEN_ALWAYS : TRANSPORT_REUSE_ALIVE);
|
||||
|
||||
if (NS_FAILED (rv))
|
||||
{
|
||||
NS_RELEASE (req);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
NS_RELEASE (req);
|
||||
@ -744,6 +747,8 @@ nsHTTPPipelinedRequest::OnStopRequest (nsIChannel* channel, nsISupports* i_Conte
|
||||
req -> mConnection -> ResponseCompleted (consumer, rv, i_Msg);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE (req);
|
||||
|
||||
//
|
||||
// These resouces are no longer needed...
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user