【发布时间】:2012-05-09 02:58:59
【问题描述】:
我在我的应用中添加了以下代码:
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *setCategoryError = nil;
BOOL success = [audioSession setCategory:AVAudioSessionCategoryPlayback error:&setCategoryError];
在添加此代码之前,我在运行 xCode Instruments Leaks 工具时没有发现任何泄漏。添加此代码后,我得到了泄漏: 泄漏对象:_NSCFString, 地址:0x5572e0, 大小:32 字节, 负责库:AudioToolBox, 负责框架:AudioSessionGetProperty。
代码行取自 IOS 库示例代码。关于什么是错误的以及我需要做些什么来解决它的任何建议?
谢谢....
【问题讨论】:
标签: ios memory-leaks