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:
parent
2ecce20f07
commit
dbc76bf3ce
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user