kmoonki / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Memory leak in -[OADataFetcher fetchDataWithRequest:delegate:didFinishSelector:didFailSelector:] #159

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
    if (response == nil || responseData == nil || error != nil) {
        OAServiceTicket *ticket= [[OAServiceTicket alloc] initWithRequest:request
                                                                 response:response
                                                               didSucceed:NO];
        [delegate performSelector:didFailSelector
                       withObject:ticket
                       withObject:error];
    } else {
        OAServiceTicket *ticket = [[OAServiceTicket alloc] initWithRequest:request
                                                                  response:response
                                                                didSucceed:[(NSHTTPURLResponse *)response statusCode] < 
400];
        [delegate performSelector:didFinishSelector
                       withObject:ticket
                       withObject:responseData];
    } 

'ticket' is not released.
I hope you fix it.

Original issue reported on code.google.com by near...@gmail.com on 25 Apr 2010 at 8:49