NSURLConnection *connection is a property of the class
@property (nonatomic, retain) NSURLConnection *connection;
Instruments is reporting that I'm leaking an NSURLConnection object in the second line of the code below.
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:_url];
self.connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[request release];
In the didFinishLoading
and didFinishWithError
delegate selectors, I'm releasing the connection and setting to nil
[self.connection release];
self.connection = nil;
I've read the "NSURLConnection leak?" post and several others. I feel like I must be missing something totally obvious. Help?