IOS-2794 Comments

IOS-2794
Dirk Zimmermann 2 years ago
parent 98a3c5386f
commit 49784361b2

@ -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