Re: [ myWorkSpace openURL: myurl ] is leaking. Why??

2009-12-11 Thread Bill Bumgarner
On Dec 10, 2009, at 11:55 PM, Parimal Das wrote: I must be missing something here. Can anyone point what is wrong here. (1) there is no need for an autorelease pool in such a simple -awakeFromNib. It will be in the context of an autorelease pool to begin with and doesn't create enough

[ myWorkSpace openURL: myurl ] is leaking. Why??

2009-12-10 Thread Parimal Das
Hi all, This is a very simple code. And it is always leaking. -(void)awakeFromNib { NSAutoreleasePool* pool = [ [NSAutoreleasePool alloc ] init ]; NSWorkspace* ws = [NSWorkspace sharedWorkspace]; NSString* tempUrl = @http://www.google.com;; NSURL* myurl = [NSURL