Fix a small memory leak in OnStopRequest introduced by earlier checkins

This commit is contained in:
ruslan%netscape.com 2000-04-01 08:13:48 +00:00
parent d60b972e28
commit eae17b4d91

View File

@ -571,7 +571,10 @@ nsHTTPPipelinedRequest::WriteRequest ()
mAttempts ? TRANSPORT_OPEN_ALWAYS : TRANSPORT_REUSE_ALIVE); mAttempts ? TRANSPORT_OPEN_ALWAYS : TRANSPORT_REUSE_ALIVE);
if (NS_FAILED (rv)) if (NS_FAILED (rv))
{
NS_RELEASE (req);
return rv; return rv;
}
} }
NS_RELEASE (req); NS_RELEASE (req);
@ -744,6 +747,8 @@ nsHTTPPipelinedRequest::OnStopRequest (nsIChannel* channel, nsISupports* i_Conte
req -> mConnection -> ResponseCompleted (consumer, rv, i_Msg); req -> mConnection -> ResponseCompleted (consumer, rv, i_Msg);
} }
NS_IF_RELEASE (req);
// //
// These resouces are no longer needed... // These resouces are no longer needed...
// //