From 16f7857ad8932581d8ebea001815b7f484d949a3 Mon Sep 17 00:00:00 2001 From: "putterman%netscape.com" Date: Tue, 15 Jun 1999 23:23:13 +0000 Subject: [PATCH] Remove an extra AddRef. --- mailnews/base/src/nsMsgMailSession.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }