ShareKit/Twitter 内存泄漏

发布于 2024-12-25 21:57:09 字数 244 浏览 2 评论 0原文

我遇到了一个问题 - 我正在使用 ShareKit 2.0,当我在 iOs 5.0.1 上进行测试时,当我尝试在 Twitter 上分享时,出现了一些内存泄漏。确切地说,是在原生 ios5 twitter 窗口弹出的那一刻,当我点击“发送”时。问题似乎出在 TWSession 中。当我在 iOS 4.3 上进行测试并使用自定义 sharekit twitter 窗口时,没有出现泄漏。关于如何修复它有什么想法吗?这会成为审批过程中的问题吗?顺便说一句,我没有使用 ARC。

I've got a problem - I'm using ShareKit 2.0, and while I'm testing on iOs 5.0.1 I get some memory leaks when I'm trying to share on Twitter. To be exact, at the moment when native ios5 twitter window pops-up, and when i hit "send". The problem seems to be in TWSession. When I'm testing on iOS 4.3, and using custom sharekit twitter window there are no leaks. Any idea on how to fix it? Will this be an issue on the approval process? I'm not using ARC btw.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

栀子花开つ 2025-01-01 21:57:09

我从未听说过应用程序因小内存泄漏而被拒绝。此外,除非您的应用程序的全部目的是发送推文,否则用户不太可能发送足够的推文来产生重大影响(任何泄漏都很烦人)。

I have never heard of an app being rejected for a small memory leak. Also, unless the whole point of your app is to send tweets, users are unlikely to send enough tweets to make a big difference (annoying as any leak is).

双马尾 2025-01-01 21:57:09

我还发现导致泄漏的代码如下:

Leaked Object # Address Size Responsible Library Responsible Frame
NSMallocBlock,1 0xf641c50 32 字节 Twitter -[TWInFlightSessionCallInfo setRemoteCall:]
TWInFlightSessionCallInfo,1 0xf676380 16 字节 Twitter -[TWSessionemptyCallInfo]
Malloc 16 字节,1 0xf6457c0 16 字节 Twitter -[TWSession recordAndIssueCallInfo:]
Malloc 128 字节,2 <多个> 256 字节 libdispatch.dylibdispatch_queue_create$VARIANT$up
NSLock,1 0xf64b450 64 字节 Twitter -[TWSession 初始化]
TWSession,1 0xf62c3e0 32 字节 Twitter -[TWTweetComposeViewController 会话]
NSMutableArray,1 0x2c8540 32 字节 Twitter -[TWSession 初始化]
NSMallocBlock,1 0x1084ebb0 32 字节 Twitter -[TWInFlightSessionCallInfo setRemoteCall:]

What I have also found the codes caused leaks are as the followings:

Leaked Object # Address Size Responsible Library Responsible Frame
NSMallocBlock,1 0xf641c50 32 Bytes Twitter -[TWInFlightSessionCallInfo setRemoteCall:]
TWInFlightSessionCallInfo,1 0xf676380 16 Bytes Twitter -[TWSession emptyCallInfo]
Malloc 16 Bytes,1 0xf6457c0 16 Bytes Twitter -[TWSession recordAndIssueCallInfo:]
Malloc 128 Bytes,2 < multiple > 256 Bytes libdispatch.dylib dispatch_queue_create$VARIANT$up
NSLock,1 0xf64b450 64 Bytes Twitter -[TWSession init]
TWSession,1 0xf62c3e0 32 Bytes Twitter -[TWTweetComposeViewController session]
NSMutableArray,1 0x2c8540 32 Bytes Twitter -[TWSession init]
NSMallocBlock,1 0x1084ebb0 32 Bytes Twitter -[TWInFlightSessionCallInfo setRemoteCall:]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文