Bug 1517464 - Fix crash in SMTP DTOR by properly initializing/testing pointer.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-10 23:34:36 -05:00 committed by Roy Tam
commit 9a5ef5ff5d

View file

@ -229,13 +229,14 @@ NS_INTERFACE_MAP_END_INHERITING(nsMsgAsyncWriteProtocol)
#endif
nsSmtpProtocol::nsSmtpProtocol(nsIURI * aURL)
: nsMsgAsyncWriteProtocol(aURL)
, m_dataBuf(nullptr)
{
}
nsSmtpProtocol::~nsSmtpProtocol()
{
// free our local state
PR_Free(m_dataBuf);
PR_FREEIF(m_dataBuf);
}
void nsSmtpProtocol::Initialize(nsIURI * aURL)