I use the following code (inside the view controller in the tab bar application) to play the video downloaded from the main package after the user selects a row in the table.
- (void)loadMoviePlayer:(NSString*)moviePath
{
NSURL* fileURL = [[NSURL alloc] initFileURLWithPath:moviePath];
MPMoviePlayerViewController* player = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];
[fileURL release];
[self presentMoviePlayerViewControllerAnimated:player];
[player release];
}
The application creates and runs without any obvious problems in the simulator (I have not tested it on the device yet), but when I run it through the tools, a memory leak occurs during video playback. Tools distinguish AudioToolbox as the “Responsible Library” and SimAggregateDevice::SimAggregateDevice(_CFString const*, _CFString const*, long&)
and
APComponent::CreateDispatchTable(AudioComponentPluginInterface*, unsigned long)
like "Responsible Personnel (s)".
Any light you can shed on this will be greatly appreciated! Thank.