Recursive Blocks in Objective-C leaking in ARC

后端 未结 3 793
生来不讨喜
生来不讨喜 2020-12-16 14:49

So I\'m using recursive blocks. I understand that for a block to be recursive it needs to be preceded by the __block keyword, and it must be copied so it can be put on the

3条回答
  •  春和景丽
    2020-12-16 15:04

    Aaron,

    As your code appears to be single threaded, why are you copying the block? If you don't copy the block, you don't have a leak.

    Andrew

提交回复
热议问题