Reputation: 933
According to the documentation:
Important: The delegate object is retained by the receiver. This is a rare exception to the memory management rules described in Memory Management Programming Guide.
Right now, I'm setting the delegate and not releasing it, which is what I'd normally do.
When I set the delegate of a CATransition object, am I leaking the delegate by not releasing it? I've tried this method and it crashed my code.
Upvotes: 0
Views: 422
Reputation: 3572
I don't think so. I think the documentation is just saying that the receiver is retaining the delegate internally, which means it also has the responsibility to release it internally. Imo, you should not be doing an extra release.
Upvotes: 2