I am using ARC and in one method I alloc an operation object. Will that cause a memory leak? If yes where should I set it to nil? Inside the completion blocks or after the [operation start]; ?
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
// success downloading file
// Do something
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
// error downloading file
// Do something else
}];
[operation start];