Browse Source

IOS-2794 Comments

IOS-2794
Dirk Zimmermann 1 year ago
parent
commit
49784361b2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pantomime-lib/Framework/Pantomime/CWSMTP.m

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

@ -679,7 +679,7 @@ static inline CWInternetAddress *next_recipient(NSMutableArray *theRecipients, B
// We first replace all occurences of LF by CRLF in the Message's data.
//
aMutableData = [[NSMutableData dataWithData: _data] replaceLFWithCRLF];
_data = nil;
_data = nil; // save memory by deleting as soon as possible
//
// According to RFC 2821 section 4.5.2, we must check for the character
@ -726,7 +726,7 @@ static inline CWInternetAddress *next_recipient(NSMutableArray *theRecipients, B
// We inform the delegate that the mail was sucessfully sent.
PERFORM_SELECTOR_2(_delegate, @selector(messageSent:), PantomimeMessageSent, _message, @"Message");
// Delete memory consuming objects
// Delete memory consuming objects as soon as possible
_data = nil;
_message = nil;
}


Loading…
Cancel
Save