Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

One autorelease too many.

  • Loading branch information...
commit 9302e90e14cbf87ce21dba34ee7bb8246a3e36c5 1 parent 0ca0272
@jum authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Appirater.m
View
2  Appirater.m
@@ -87,7 +87,7 @@ - (BOOL)connectedToNetwork {
NSURL *testURL = [NSURL URLWithString:@"http://www.apple.com/"];
NSURLRequest *testRequest = [NSURLRequest requestWithURL:testURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20.0];
- NSURLConnection *testConnection = [[[NSURLConnection alloc] initWithRequest:testRequest delegate:self] autorelease];
+ NSURLConnection *testConnection = [[NSURLConnection alloc] initWithRequest:testRequest delegate:self];
BOOL ret = ((isReachable && !needsConnection) || nonWiFi) ? (testConnection ? YES : NO) : NO;
[testConnection release];
Please sign in to comment.
Something went wrong with that request. Please try again.