[Issue #56] Fixing 'The Dealloc Problem'
This commit is contained in:
parent
db3dddb03b
commit
ce9872965c
1 changed files with 2 additions and 2 deletions
|
|
@ -147,10 +147,10 @@ static inline NSString * AFKeyPathFromOperationState(AFOperationState state) {
|
||||||
[super setCompletionBlock:nil];
|
[super setCompletionBlock:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
__block id _blockSelf = [self retain];
|
__block id _blockSelf = self;
|
||||||
[super setCompletionBlock:^ {
|
[super setCompletionBlock:^ {
|
||||||
block();
|
block();
|
||||||
[_blockSelf autorelease];
|
[_blockSelf setCompletionBlock:nil];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue