小编Kil*_*ian的帖子

使用MPMoviePlayerViewController iOS 4.2时,AudioToolbox的iPhone内存泄漏

我正在使用以下代码(在选项卡栏应用程序中的视图控制器内)播放用户选择表格行后从主包中加载的视频.

- (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)

作为"负责任的框架".

任何你可以在这上面的光都会非常感激!谢谢.

iphone video memory-leaks

5
推荐指数
1
解决办法
1532
查看次数

标签 统计

iphone ×1

memory-leaks ×1

video ×1