close nntp socket after logging out fixes memory leaks and assertions, r=mscott, sr=sspitzer 96381

This commit is contained in:
bienvenu%netscape.com 2001-10-11 14:53:34 +00:00
Родитель 78aa7ba3d3
Коммит dcbc94b5cd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5296,7 +5296,6 @@ NS_IMETHODIMP nsNNTPProtocol::CloseConnection()
{
PR_LOG(NNTP,PR_LOG_ALWAYS,("(%p) ClosingConnection",this));
SendData(nsnull, NNTP_CMD_QUIT); // this will cause OnStopRequest get called, which will call CloseSocket()
// break some cycles
CleanupNewsgroupList();
@ -5304,6 +5303,7 @@ NS_IMETHODIMP nsNNTPProtocol::CloseConnection()
m_nntpServer->RemoveConnection(this);
m_nntpServer = nsnull;
}
CloseSocket();
m_newsFolder = nsnull;
if (m_articleList) {