diff --git a/mailnews/base/src/nsMsgMailSession.cpp b/mailnews/base/src/nsMsgMailSession.cpp index 7b99ee014c3..da0873b50fc 100644 --- a/mailnews/base/src/nsMsgMailSession.cpp +++ b/mailnews/base/src/nsMsgMailSession.cpp @@ -90,9 +90,8 @@ nsresult nsMsgMailSession::GetCurrentServer(nsIMsgIncomingServer ** aServer) if (NS_FAILED(rv)) return rv; + //if successful aServer will be addref'd by GetIncomingServer rv = defaultAccount->GetIncomingServer(aServer); - if (NS_SUCCEEDED(rv)) - NS_ADDREF(*aServer); return rv; }