I'm not sure, but this:
-(void)quitFinder {
NSAppleScript *restartFinder = [[NSAppleScript alloc] initWithSource:@"tell application \"Finder\" to quit"];
[restartFinder executeAndReturnError:nil];
[restartFinder release];
}
when called like this:
[self performSelectorOnMainThread:@selector(quitFinder) withObject:nil waitUntilDone:YES];
yields this:
in Instruments memory leak tool. Am I doing something wrong?
Consider switching to OSAKit. The API is very similar to NSAppleScript, but broader, so this should be close to painless.
If OSAKit doesn't leak, then the problem may very well be in NSAppleScript, and I'd recommend filing a bug with your Instruments trace document attached.