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

This commit is contained in:
rpotts%netscape.com 1999-06-21 08:19:26 +00:00
Родитель efad00c9ea
Коммит af6c7d7ee9
1 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -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);