diff --git a/mailnews/base/src/nsMsgMailSession.cpp b/mailnews/base/src/nsMsgMailSession.cpp index cec426f54c4..ebef1a09d14 100644 --- a/mailnews/base/src/nsMsgMailSession.cpp +++ b/mailnews/base/src/nsMsgMailSession.cpp @@ -90,5 +90,6 @@ nsresult nsMsgMailSession::GetAccountManager(nsIMsgAccountManager* *aAM) if (!aAM) return NS_ERROR_NULL_POINTER; *aAM = m_accountManager; + NS_IF_ADDREF(*aAM); return NS_OK; }