From c0ef5c1068d0ec6cc00ecae7c37a60303dae0f63 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 21 Aug 2012 16:06:39 -0700 Subject: [PATCH] Replacing NSAutoreleasePool with @autoreleasepool --- AFNetworking/AFURLConnectionOperation.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 88f593b..ad462a4 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -145,9 +145,9 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat + (void)networkRequestThreadEntryPoint:(id)__unused object { do { - NSAutoreleasePool *runLoopPool = [[NSAutoreleasePool alloc] init]; - [[NSRunLoop currentRunLoop] run]; - [runLoopPool drain]; + @autoreleasepool { + [[NSRunLoop currentRunLoop] run]; + } } while (YES); }