Fixing memory leak by adding missing autorelease (Thanks, Zac Bowling)

This commit is contained in:
Mattt Thompson 2011-11-10 11:57:32 -06:00
parent 648c650ae7
commit f801bc453c

View file

@ -315,7 +315,7 @@ static NSString * AFPropertyListStringFromParameters(NSDictionary *parameters) {
} }
if (!operation) { if (!operation) {
operation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest]; operation = [[[AFHTTPRequestOperation alloc] initWithRequest:urlRequest] autorelease];
} }
[operation setCompletionBlockWithSuccess:success failure:failure]; [operation setCompletionBlockWithSuccess:success failure:failure];