首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iPhone - MessageUI框架中的泄漏?

iPhone - MessageUI框架中的泄漏?
EN

Stack Overflow用户
提问于 2012-05-01 21:34:59
回答 1查看 179关注 0票数 3

我使用MFMailComposeViewController在我的应用程序中发送电子邮件。

当我用运行我的应用程序时,

在我点击发送电子邮件后,我看到了一个漏洞。

代码语言:javascript
复制
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框架中的漏洞吗?

代码语言:javascript
复制
- (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];
    }
EN

回答 1

Stack Overflow用户

发布于 2012-05-01 21:53:33

是的,看起来很像。但是每发一封电子邮件总共有64个字节,这不是你应该担心的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10404706

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档