memory leak in AudioToolbox library AVAudioPlayer
Is there a memory lead issue with the AVAudioPlayer object? I'm getting a memory leak when using AVAudioPlayer in the simulator. It doesn't matter how I created the AVAudioPlayer. I've used initWithContentsOfURL and InitWithData . Below is a snippet of the code. Full project @ Github https://github.com/docchang/MemoryLeakAVAudioPlayer NSError *error; NSURL *playerURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Bell" ofType:@"m4a"]]; self.playerWithURL = [[AVAudioPlayer alloc] initWithContentsOfURL:playerURL error:&error]; if (!playerWithURL) { NSLog(@"no %@.%@: %@",@