Browse Source

IOS-2794 Less memory in _removeInvalidHeadersFromMessage

IOS-2794
Dirk Zimmermann 1 year ago
parent
commit
349806bd17
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      pantomime-lib/Framework/Pantomime/CWIMAPFolder.m

+ 5
- 2
pantomime-lib/Framework/Pantomime/CWIMAPFolder.m View File

@ -770,7 +770,7 @@
- (NSData *) _removeInvalidHeadersFromMessage: (NSData *) theMessage
{
NSMutableData *aMutableData;
NSArray *allLines;
NSMutableArray *allLines;
NSUInteger i, count;
// We allocate our mutable data object
@ -785,7 +785,10 @@
NSData *aLine;
// We get a line...
aLine = [allLines objectAtIndex: i];
aLine = [allLines firstObject];
// Remove the line immediately to easy memory consumption
[allLines removeObjectAtIndex:0];
// We skip dumb headers
if ([aLine hasCPrefix: "From "])


Loading…
Cancel
Save