Possible Duplicate:
How do I use NSTimer
Decrement Issue
I'm really struggling to get rid of the following warning:
Incorrect decrement of the reference count of an object that is at this point not owned by the caller.
The code compiles fine and the app seems to work fine. Basically I am trying to create an object of a class to play a short audio clip when the button is pressed. I've created a class to play the file and the objects are passed the files name as a string.
Here is the code:
- (IBAction) playKick
{
PlayAudio *thisPlayAudio= [[[PlayAudio alloc] init] playFile:(@"RockSnare")];
[thisPlayAudio release];
}
I've read the other posts and any help would be much appreciated!