Fixing memory leak by adding missing autorelease (Thanks, Zac Bowling)
This commit is contained in:
parent
648c650ae7
commit
f801bc453c
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue