Skip to content

Commit

Permalink
[Issue domesticcatsoftware#56] Fixing 'The Dealloc Problem'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Oct 10, 2011
1 parent db3dddb commit ce98729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AFNetworking/AFURLConnectionOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ - (void)setCompletionBlock:(void (^)(void))block {
[super setCompletionBlock:nil];
}

__block id _blockSelf = [self retain];
__block id _blockSelf = self;
[super setCompletionBlock:^ {
block();
[_blockSelf autorelease];
[_blockSelf setCompletionBlock:nil];
}];
}

Expand Down

0 comments on commit ce98729

Please sign in to comment.