ProductCenterController __weak *tempSelf = self;
void(^block)(void) = ^{
tempSelf.actIndView = ....
[tempSelf.view addSubview:tempSelf.actIndView];
};
[NSThread detachNewThreadSelector:@selector(actionForThreadBlock:) toTarget:self withObject:block];
Leak - '_Block_copy_internal'...(私は ARC を使用しています) を見つけ、最後の行コードを次のようなものに変更すると、漏れが見つかりません...:
[NSThread detachNewThreadSelector:@selector(actionForThreadBlock:) toTarget:self withObject:[block copy]];
[ブロックコピー]を使用しないと、なぜリークが発生するのですか????
関数の後にブロックが解放され、終了後にスレッドがすべて解放されると思います...
どのように漏れを引き起こしますか?