summaryrefslogtreecommitdiffstats
path: root/mailnews/imap/src/nsImapMailFolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/imap/src/nsImapMailFolder.cpp')
-rw-r--r--mailnews/imap/src/nsImapMailFolder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp
index 4fade9d3f..da1411cd0 100644
--- a/mailnews/imap/src/nsImapMailFolder.cpp
+++ b/mailnews/imap/src/nsImapMailFolder.cpp
@@ -8379,7 +8379,7 @@ nsImapMailFolder::CopyFileToOfflineStore(nsIFile *srcFile, nsMsgKey msgKey)
{
// Now, parse the temp file to (optionally) copy to
// the offline store for the cur folder.
- nsMsgLineStreamBuffer *inputStreamBuffer =
+ RefPtr<nsMsgLineStreamBuffer> inputStreamBuffer =
new nsMsgLineStreamBuffer(FILE_IO_BUFFER_SIZE, true, false);
int64_t fileSize;
srcFile->GetFileSize(&fileSize);
@@ -8443,7 +8443,6 @@ nsImapMailFolder::CopyFileToOfflineStore(nsIFile *srcFile, nsMsgKey msgKey)
notifier->NotifyMsgsClassified(messages, false, false);
inputStream->Close();
inputStream = nullptr;
- delete inputStreamBuffer;
}
if (offlineStore)
offlineStore->Close();