Cleaned up the destructor to correctly release the input stream...

git-svn-id: svn://10.0.0.236/trunk@36033 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com 1999-06-21 08:19:26 +00:00
parent 2ecce20f07
commit dbc76bf3ce

View File

@ -46,23 +46,13 @@ nsHTTPRequest::nsHTTPRequest(nsIURI* i_pURL, HTTPMethod i_Method, nsIChannel* i_
nsHTTPRequest::~nsHTTPRequest()
{
if (m_Request)
{
delete[] m_Request;
m_Request = 0;
}
if (m_pArray)
{
delete m_pArray;
m_pArray = 0;
}
if (m_Request)
{
delete m_Request;
m_Request = 0;
}
if (m_pTransport)
NS_RELEASE(m_pTransport);
NS_IF_RELEASE(m_Request);
NS_IF_RELEASE(m_pTransport);
/*
if (m_pConnection)
NS_RELEASE(m_pConnection);