summaryrefslogtreecommitdiff
path: root/mailnews
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-10 23:34:36 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-10 23:34:36 -0500
commit545923ea69004d7c0d0780c3f450a28956af4b80 (patch)
tree6742abe28ec17843e938533e42cbcd87bb4eaede /mailnews
parent7d08cc5ac9695a58f4f30fecce115ada41b4a2c1 (diff)
downloadaura-central-545923ea69004d7c0d0780c3f450a28956af4b80.tar.gz
Bug 1517464 - Fix crash in SMTP DTOR by properly initializing/testing pointer.
Tag mcp-graveyard/UXP%1273
Diffstat (limited to 'mailnews')
-rw-r--r--mailnews/compose/src/nsSmtpProtocol.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mailnews/compose/src/nsSmtpProtocol.cpp b/mailnews/compose/src/nsSmtpProtocol.cpp
index 522890c78..89607224e 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)