Hi,
help needed to syntax a memory leak problem (state by the analyzer)
THX :-)
code:
@implementation APlayer
-(id)initWithFile

NSString *)fName type

NSString *)fType
{
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: [[NSBundle mainBundle] pathForResource:fName ofType:fType]];
self = [super initWithContentsOfURL:fileURL error:nil];
[fileURL release];
return self;
}
-(CFURLRef)soundFileURL

NSString *)fURL
{
CFBundleRef mainBundle = CFBundleGetMainBundle();
return CFBundleCopyResourceURL(mainBundle, CFStringCreateWithCString(NULL,[fURL UTF8String], kCFStringEncodingUTF8), CFSTR ("mp3"), NULL);
}
-(void) dealloc
{
[super dealloc];
}
@end