Re: NSAppleScript leaking memory?
Re: NSAppleScript leaking memory?
- Subject: Re: NSAppleScript leaking memory?
- From: Peter Maurer <email@hidden>
- Date: Fri, 26 Mar 2004 23:38:42 +0100
NSDictionary *appleScriptError;
NSString * result;
NSAppleEventDescriptor *scriptResult = [queryScript
executeAndReturnError:&appleScriptError];
result = [[[scriptResult stringValue] copy] autorelease];
This is just a guess, but you might have to release the
appleScriptError NSDictionary (if there is one). Or pass NULL to
executeAndReturnError, if you're not going to use it.
Peter.
--
http://www.petermaurer.de/butler/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.