When to call release on NSURLConnection delegate?

Posted by Kieran H on Stack Overflow See other posts from Stack Overflow or by Kieran H
Published on 2009-10-27T16:46:47Z Indexed on 2010/04/21 4:03 UTC
Read the original article Hit count: 389

Filed under:
|
|

Hi, When passing a delegate to the a NSUrlConnection object like so:

[[NSURLConnection alloc] initWithRequest:request delegate:handler];

when should you call release on the delegate? Should it be in connectionDidFinishLoading? If so, I keep getting exec_bad_access. I'm seeing that my delegates are leaking through instruments.

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsurlconnection