From dbc76bf3cea6dcf22cc9bc4b2f2cd1af1642b1c4 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Mon, 21 Jun 1999 08:19:26 +0000 Subject: [PATCH] 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 --- .../netwerk/protocol/http/src/nsHTTPRequest.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPRequest.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPRequest.cpp index a0abb4379fe..dbbbb100ecf 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPRequest.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPRequest.cpp @@ -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);