Bug 1516501 - Bug 1333038 follow-up: Convert forgotten use of nsMsgLineStreamBuffer to 'modern' pointer. r=darktrojan
authorJorg K <jorgk@jorgk.com>
Fri, 28 Dec 2018 22:09:31 +0100
changeset 34074 468c27d25750ad1a11533c953e61b62ec280eebb
parent 34073 79e8da7ee32ce64824c4b692f124f6dbdcd6016c
child 34075 e1df268e0c14fe650a8c9b5a130ab77413e6e060
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersdarktrojan
bugs1516501, 1333038
Bug 1516501 - Bug 1333038 follow-up: Convert forgotten use of nsMsgLineStreamBuffer to 'modern' pointer. r=darktrojan
mailnews/local/src/nsMsgMaildirStore.cpp
--- a/mailnews/local/src/nsMsgMaildirStore.cpp
+++ b/mailnews/local/src/nsMsgMaildirStore.cpp
@@ -1199,17 +1199,17 @@ nsresult MaildirStoreParser::ParseNextMe
   rv = m_db->CreateNewHdr(nsMsgKey_None, getter_AddRefs(newMsgHdr));
   NS_ENSURE_SUCCESS(rv, rv);
 
   newMsgHdr->SetMessageOffset(0);
 
   rv = NS_NewLocalFileInputStream(getter_AddRefs(inputStream), aFile);
   if (NS_SUCCEEDED(rv) && inputStream)
   {
-    nsMsgLineStreamBuffer *inputStreamBuffer =
+    RefPtr<nsMsgLineStreamBuffer> inputStreamBuffer =
       new nsMsgLineStreamBuffer(FILE_IO_BUFFER_SIZE, true, false);
     int64_t fileSize;
     aFile->GetFileSize(&fileSize);
     msgParser->SetNewMsgHdr(newMsgHdr);
     msgParser->SetState(nsIMsgParseMailMsgState::ParseHeadersState);
     msgParser->SetEnvelopePos(0);
     bool needMoreData = false;
     char * newLine = nullptr;