mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Add some cleanup code to the protocol destructor....
This commit is contained in:
parent
dacc61684c
commit
d8d2d14260
@ -218,8 +218,17 @@ nsSmtpProtocol::nsSmtpProtocol(nsIURL * aURL, nsITransport * transportLayer)
|
||||
nsSmtpProtocol::~nsSmtpProtocol()
|
||||
{
|
||||
// release all of our event sinks
|
||||
|
||||
|
||||
// free our local state
|
||||
PR_FREEIF(m_responseText);
|
||||
PR_FREEIF(m_hostName);
|
||||
PR_FREEIF(m_addressCopy);
|
||||
PR_FREEIF(m_verifyAddress);
|
||||
PR_FREEIF(m_dataBuf);
|
||||
|
||||
// free handles on all networking objects...
|
||||
NS_IF_RELEASE(m_outputStream);
|
||||
NS_IF_RELEASE(m_outputConsumer);
|
||||
NS_IF_RELEASE(m_transport);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user