From 3767c30d26a40ebf73f6fdfcf1aa74ea1bb703a1 Mon Sep 17 00:00:00 2001 From: "rhp%netscape.com" Date: Sat, 17 Jul 1999 00:12:35 +0000 Subject: [PATCH] Fix for bug #9791. --- mailnews/compose/src/nsMsgCompose.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index 235863127d2..3829099c496 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -312,6 +312,7 @@ nsresult nsMsgCompose::_SendMsg(MSG_DeliverMode deliverMode, if (!m_sendListener) return NS_ERROR_FAILURE; + NS_ADDREF(m_sendListener); // set this object for use on completion... m_sendListener->SetComposeObj(this); m_sendListener->SetDeliverMode(deliverMode); @@ -1140,7 +1141,7 @@ nsresult nsMsgComposeSendListener::OnStopSending(const char *aMsgID, nsresult aS mComposeObj->CloseWindow(); // if we fail on the simple GetFcc call, close the window to be safe and avoid // windows hanging around to prevent the app from exiting. - NS_IF_RELEASE(mComposeObj); + NS_IF_RELEASE(compFields); } else {