From a3bd0cc93e0e564de04b38351102c3cc70d28a88 Mon Sep 17 00:00:00 2001 From: Kevin Harwood Date: Thu, 1 Mar 2012 08:32:56 -0600 Subject: [PATCH] Releasing the connection in dealloc --- AFNetworking/AFURLConnectionOperation.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index a92db62..f51f4eb 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -192,6 +192,8 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat [_authenticationChallenge release]; [_authenticationAgainstProtectionSpace release]; + [_connection release]; + [super dealloc]; }