I have a class which holds a block as an object property:
@property (nonatomic, readwrite, copy) SFFailureBlock failureBlock;
where SFFailureBl
When you refer to "failureBlock" in the operation's block, you are really doing "self-> failureBlock" - so it implicitly retains self. What you can do is create an automatic variable SFFailureBlock xFailureBlock = failureBlock; above the selfoperation, then use it in the block. [Again, you want to avoid any self-> references INSIDE that block either.]