зеркало из https://github.com/mozilla/pjs.git
close nntp socket after logging out fixes memory leaks and assertions, r=mscott, sr=sspitzer 96381
This commit is contained in:
Родитель
78aa7ba3d3
Коммит
dcbc94b5cd
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче