diff options
Diffstat (limited to 'mailnews/news')
-rw-r--r-- | mailnews/news/src/nsNNTPProtocol.cpp | 4 | ||||
-rw-r--r-- | mailnews/news/src/nsNNTPProtocol.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/mailnews/news/src/nsNNTPProtocol.cpp b/mailnews/news/src/nsNNTPProtocol.cpp index 7c6314d52..f721e9747 100644 --- a/mailnews/news/src/nsNNTPProtocol.cpp +++ b/mailnews/news/src/nsNNTPProtocol.cpp @@ -271,7 +271,6 @@ nsNNTPProtocol::nsNNTPProtocol(nsINntpIncomingServer *aServer, nsIURI *aURL, NNTP = PR_NewLogModule("NNTP"); m_ProxyServer = nullptr; - m_lineStreamBuffer = nullptr; m_responseText = nullptr; m_dataBuf = nullptr; @@ -305,9 +304,6 @@ nsNNTPProtocol::~nsNNTPProtocol() m_nntpServer->WriteNewsrcFile(); m_nntpServer->RemoveConnection(this); } - if (m_lineStreamBuffer) { - delete m_lineStreamBuffer; - } if (mUpdateTimer) { mUpdateTimer->Cancel(); mUpdateTimer = nullptr; diff --git a/mailnews/news/src/nsNNTPProtocol.h b/mailnews/news/src/nsNNTPProtocol.h index 08db18ee8..6dd3c58de 100644 --- a/mailnews/news/src/nsNNTPProtocol.h +++ b/mailnews/news/src/nsNNTPProtocol.h @@ -197,7 +197,7 @@ private: nsCOMPtr<nsIAsyncInputStream> mDisplayInputStream; nsCOMPtr<nsIAsyncOutputStream> mDisplayOutputStream; - nsMsgLineStreamBuffer * m_lineStreamBuffer; // used to efficiently extract lines from the incoming data stream + RefPtr<nsMsgLineStreamBuffer> m_lineStreamBuffer; // used to efficiently extract lines from the incoming data stream // the nsINntpURL that is currently running nsCOMPtr<nsINntpUrl> m_runningURL; bool m_connectionBusy; |