TWRequest con fugas?

Im using TWRequest in ios5 but Leaks is reporting a memory leak for TWRequest.

I'm doing something like this, am I going wrong somewhere?

TWRequest *postRequest = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@""] parameters:[NSDictionary dictionaryWithObject:@"auser"  forKey:@"screen_name"] requestMethod:TWRequestMethodPOST];

 // Set the account used to post the tweet.
 [postRequest setAccount:twitterAccount];

 // Perform the request created above and create a handler block to handle the response.
 [postRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
       NSString *output = [NSString stringWithFormat:@"HTTP response status: %i", [urlResponse statusCode]];

       [TWRequest release];

preguntado el 08 de noviembre de 11 a las 17:11

I'm surprised this works:[TWRequest release]; Does Leaks tell you which line is leaking? -

Any message that you can send to an instance of NSObject you can also send to a class. [TWRequest release]; won't do anything but "works". -

Run Analyze in Xcode, it will probably show the error. -

1 Respuestas

Querrás cambiar [TWRequest release]; a [postRequest release];

respondido 08 nov., 11:22

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.