My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 159: Memory leak in -[OADataFetcher fetchDataWithRequest:delegate:didFinishSelector:didFailSelector:]
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by near...@gmail.com, Apr 25, 2010
    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.
Sign in to add a comment

Powered by Google Project Hosting