Permalink
Browse files

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

  • Loading branch information...
1 parent 648c650 commit f801bc453c8c74d7cd92482a67b66537e72b4835 @mattt mattt committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFNetworking/AFHTTPClient.m
@@ -315,7 +315,7 @@ - (AFHTTPRequestOperation *)HTTPRequestOperationWithRequest:(NSURLRequest *)urlR
}
if (!operation) {
- operation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest];
+ operation = [[[AFHTTPRequestOperation alloc] initWithRequest:urlRequest] autorelease];
}
[operation setCompletionBlockWithSuccess:success failure:failure];

0 comments on commit f801bc4

Please sign in to comment.