mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix small leak
The connection is released by NSURLConnection itself, we should break that by releasing ourselves or setting it to nil
This commit is contained in:
parent
85315f33cf
commit
e9f72ebde8
@ -663,7 +663,6 @@ NSString *BWQuincyLocalize(NSString *stringToken) {
|
||||
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
|
||||
[_responseData release];
|
||||
_responseData = nil;
|
||||
_urlConnection = nil;
|
||||
|
||||
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(connectionClosed)]) {
|
||||
[self.delegate connectionClosed];
|
||||
@ -735,7 +734,6 @@ NSString *BWQuincyLocalize(NSString *stringToken) {
|
||||
|
||||
[_responseData release];
|
||||
_responseData = nil;
|
||||
_urlConnection = nil;
|
||||
|
||||
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(connectionClosed)]) {
|
||||
[self.delegate connectionClosed];
|
||||
|
Loading…
x
Reference in New Issue
Block a user