Permalink
Browse files

One autorelease too many.

  • Loading branch information...
jum committed Feb 27, 2012
1 parent 0ca0272 commit 9302e90e14cbf87ce21dba34ee7bb8246a3e36c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 Appirater.m
View
@@ -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];

0 comments on commit 9302e90

Please sign in to comment.