# HG changeset patch # User Jorg K # Date 1523622801 -7200 # Node ID 4a08421a80cefbdfac98be07709687f69757c18e # Parent e00802effd75432c39e4657b8d444a4d2384b219 Bug 556355 - Make sure the nsIMsgSend doesn't go away before we're done (take 2). r=me a=jorgk DONTBUILD diff --git a/mailnews/compose/src/nsMsgSend.cpp b/mailnews/compose/src/nsMsgSend.cpp --- a/mailnews/compose/src/nsMsgSend.cpp +++ b/mailnews/compose/src/nsMsgSend.cpp @@ -4130,16 +4130,18 @@ nsMsgComposeAndSend::CreateAndSendMessag mozIDOMWindowProxy *parentWindow, nsIMsgProgress *progress, nsIMsgSendListener *aListener, const nsAString &password, const nsACString &aOriginalMsgURI, MSG_ComposeType aType ) { + nsCOMPtr kungFuDeathGrip(this); + nsresult rv; /* First thing to do is to reset the send errors report */ mSendReport->Reset(); mSendReport->SetDeliveryMode(mode); mParentWindow = do_QueryInterface(parentWindow); mSendProgress = progress; mListener = aListener;