diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 23:34:36 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 23:34:36 -0500 |
commit | 22973db5032189f97bf8ad190981d71c890bf151 (patch) | |
tree | 6742abe28ec17843e938533e42cbcd87bb4eaede /mailnews/compose | |
parent | d80e610cd5bc6a9f6c0cc139e2f07e007fa05428 (diff) | |
download | uxp-22973db5032189f97bf8ad190981d71c890bf151.tar.gz |
Bug 1517464 - Fix crash in SMTP DTOR by properly initializing/testing pointer.
Tag #1273
Diffstat (limited to 'mailnews/compose')
-rw-r--r-- | mailnews/compose/src/nsSmtpProtocol.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mailnews/compose/src/nsSmtpProtocol.cpp b/mailnews/compose/src/nsSmtpProtocol.cpp index 522890c789..89607224ed 100644 --- a/mailnews/compose/src/nsSmtpProtocol.cpp +++ b/mailnews/compose/src/nsSmtpProtocol.cpp @@ -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) |