Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2016-09-26 13:53:00 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2016-09-27 20:12:52 +0300
commitc4a7e985b75966e02bd1316201e0fd441b658410 (patch)
tree90e8560aa620cdb7f9d8a1a46060d31c22ed9b89 /platform/http_thread_apple.mm
parentbda598461b3503f3f43178bfc23887c63ae54b1f (diff)
http client was copied from alohalytics to our code with small changes
Diffstat (limited to 'platform/http_thread_apple.mm')
-rw-r--r--platform/http_thread_apple.mm5
1 files changed, 0 insertions, 5 deletions
diff --git a/platform/http_thread_apple.mm b/platform/http_thread_apple.mm
index 5f6f54e208..423b35db91 100644
--- a/platform/http_thread_apple.mm
+++ b/platform/http_thread_apple.mm
@@ -23,12 +23,10 @@ static id<DownloadIndicatorProtocol> downloadIndicator = nil;
{
LOG(LDEBUG, ("ID:", [self hash], "Connection is destroyed"));
[m_connection cancel];
- [m_connection release];
#ifdef OMIM_OS_IPHONE
[downloadIndicator enableStandby];
[downloadIndicator disableDownloadIndicator];
#endif
- [super dealloc];
}
- (void) cancel
@@ -66,7 +64,6 @@ static id<DownloadIndicatorProtocol> downloadIndicator = nil;
val = [[NSString alloc] initWithFormat: @"bytes=%qi-", beg];
}
[request addValue:val forHTTPHeaderField:@"Range"];
- [val release];
}
if (!pb.empty())
@@ -94,7 +91,6 @@ static id<DownloadIndicatorProtocol> downloadIndicator = nil;
if (m_connection == 0)
{
LOG(LERROR, ("Can't create connection for", url));
- [self release];
return nil;
}
else
@@ -226,7 +222,6 @@ HttpThread * CreateNativeHttpThread(string const & url,
void DeleteNativeHttpThread(HttpThread * request)
{
[request cancel];
- [request release];
}
} // namespace downloader