Kil*_*ian 5 iphone video memory-leaks
我正在使用以下代码(在选项卡栏应用程序中的视图控制器内)播放用户选择表格行后从主包中加载的视频.
- (void)loadMoviePlayer:(NSString*)moviePath
{
NSURL* fileURL = [[NSURL alloc] initFileURLWithPath:moviePath];
MPMoviePlayerViewController* player = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];
[fileURL release];
[self presentMoviePlayerViewControllerAnimated:player];
[player release];
}
Run Code Online (Sandbox Code Playgroud)
该应用程序在模拟器中构建和运行时没有任何明显问题(我还没有在设备上进行测试)但是当我通过仪器运行时,在视频播放期间发生内存泄漏.乐器将AudioToolbox强调为"负责任的图书馆" SimAggregateDevice::SimAggregateDevice(_CFString const*, _CFString const*, long&)
和
APComponent::CreateDispatchTable(AudioComponentPluginInterface*, unsigned long)
Run Code Online (Sandbox Code Playgroud)
作为"负责任的框架".
任何你可以在这上面的光都会非常感激!谢谢.
\n\n\n问题不在于“模拟器”本身,而在于为 Mac OS X 编译的 AVFoundation\n 框架。 \xe2\x80\x93 Alex Nichol Aug 17 \'11 at 23:53
\n
我将亚历克斯的评论设置为已接受的答案。K
\n| 归档时间: |
|
| 查看次数: |
1532 次 |
| 最近记录: |