#101 new
klapaudius

Object sent autorelease too many times on IOS 5

Reported by klapaudius | October 21st, 2011 @ 04:15 PM

When you launch an Analysis process on the project containing the last released ASIHTTPRequest package you get :

ASIHTTPRequest.m:1522:4: warning: Object sent -autorelease too many times

                     [self setTotalBytesSent:[NSMakeCollectable([(NSNumber *)CFReadStreamCopyProperty((CFReadStreamRef)[self readStream], kCFStreamPropertyHTTPRequestBytesWrittenCount) autorelease]) unsignedLongLongValue]];
                     ^

ASIHTTPRequest.m:2241:3: warning: Object sent -autorelease too many times

             NSString *httpVersion = NSMakeCollectable([(NSString *)CFHTTPMessageCopyVersion(message) autorelease]);
             ^

ASIHTTPRequest.m:3388:2: warning: Object sent -autorelease too many times

     [self setTotalBytesSent:[NSMakeCollectable([(NSNumber *)CFReadStreamCopyProperty((CFReadStreamRef)[self readStream], kCFStreamPropertyHTTPRequestBytesWrittenCount) autorelease]) unsignedLongLongValue]];
     ^

ASIHTTPRequest.m:3632:2: warning: Object sent -autorelease too many times

     NSError *underlyingError = NSMakeCollectable([(NSError *)CFReadStreamCopyError((CFReadStreamRef)[self readStream]) autorelease]);
     ^

ASIHTTPRequest.m:3810:4: warning: Object sent -autorelease too many times

                     NSDictionary *proxySettings = NSMakeCollectable([(NSDictionary *)CFNetworkCopySystemProxySettings() autorelease]);
                     ^

ASIHTTPRequest.m:3967:3: warning: Object sent -autorelease too many times

             NSArray *proxies = NSMakeCollectable([(NSArray *)CFNetworkCopyProxiesForAutoConfigurationScript((CFStringRef)script,(CFURLRef)[self url], &err) autorelease]);
             ^

ASIHTTPRequest.m:4444:5: warning: Object sent -autorelease too many times

 return NSMakeCollectable([(NSString *)MIMEType autorelease]);
 ^

7 warnings generated.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

People watching this ticket

Pages