Fix a mem leak in SDWebImageDownloader (fix #83)
This commit is contained in:
parent
a8d5b3ec72
commit
dfa03af19f
|
@ -118,6 +118,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
|
||||||
code:[((NSHTTPURLResponse *)response) statusCode]
|
code:[((NSHTTPURLResponse *)response) statusCode]
|
||||||
userInfo:nil];
|
userInfo:nil];
|
||||||
[delegate performSelector:@selector(imageDownloader:didFailWithError:) withObject:self withObject:error];
|
[delegate performSelector:@selector(imageDownloader:didFailWithError:) withObject:self withObject:error];
|
||||||
|
SDWIRelease(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.connection = nil;
|
self.connection = nil;
|
||||||
|
|
Loading…
Reference in New Issue