iPhone-MessageUI框架中的漏洞?
我使用MFMailComposeViewController在我的应用程序中发送电子邮件。iPhone-MessageUI框架中的漏洞?,iphone,email,messageui,Iphone,Email,Messageui,我使用MFMailComposeViewController在我的应用程序中发送电子邮件。 当我使用仪器运行应用程序时, 我点击发送电子邮件后发现有漏洞 Leaked Object # Address Size Responsible Library Responsible Frame MutableMessageHeaders,1 0x6be950 32 Bytes MessageUI +[MFComposeTypeFactory headersFromDele
当我使用仪器运行应用程序时,
我点击发送电子邮件后发现有漏洞
Leaked Object # Address Size Responsible Library Responsible Frame
MutableMessageHeaders,1 0x6be950 32 Bytes MessageUI +[MFComposeTypeFactory headersFromDelegate:]
_MFOutgoingMessageBody,1 0x1190ed0 32 Bytes Message -[MessageWriter createMessageWithPlainTextDocumentsAndAttachments:headers:]
您知道如何修复它吗,这是MessageUI框架中的漏洞吗
- (void)showMailComposer
{
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:@"Subject"];
NSString *emailBody = @"Email body";
[picker setMessageBody:emailBody isHTML:NO];
[self presentModalViewController:picker animated:YES];
[picker release];
}
#pragma mark -
#pragma mark Dismiss Mail/SMS view controller
// Dismisses the email composition interface when users tap Cancel or Send. Proceeds to update the
// message field with the result of the operation.
- (void)mailComposeController:(MFMailComposeViewController*)controller
didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
[self dismissModalViewControllerAnimated:YES];
}
是的,看起来像。但每封发送的电子邮件总共有64个字节,这不是一个你应该担心的问题。讨厌成为一个鼻涕虫。但是,这似乎是一个流行的观点…我看到内存泄漏率随着操作系统的每次更新而增加。所有这一切真正意味着用户必须更频繁地重启手机。与此同时,苹果告诉我们要尽一切努力让用户体验变得更好……嗯。