From ce9872965c85b490dcba3eb3f504b6dc312dc87f Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 10 Oct 2011 13:05:22 -0500 Subject: [PATCH] [Issue #56] Fixing 'The Dealloc Problem' --- AFNetworking/AFURLConnectionOperation.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 353a12e..8015bd6 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -147,10 +147,10 @@ static inline NSString * AFKeyPathFromOperationState(AFOperationState state) { [super setCompletionBlock:nil]; } - __block id _blockSelf = [self retain]; + __block id _blockSelf = self; [super setCompletionBlock:^ { block(); - [_blockSelf autorelease]; + [_blockSelf setCompletionBlock:nil]; }]; }