Fix unreleased operation (fix #466, fix #444)

This commit is contained in:
Olivier Poitrey 2013-08-09 00:39:46 -07:00
parent 5dd219ffa7
commit 5f12cabdac
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@
// ignore image read from NSURLCache if image if cached but force refreshing // ignore image read from NSURLCache if image if cached but force refreshing
downloaderOptions |= SDWebImageDownloaderIgnoreCachedResponse; downloaderOptions |= SDWebImageDownloaderIgnoreCachedResponse;
} }
__block id<SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished) id<SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished)
{ {
if (weakOperation.cancelled) if (weakOperation.cancelled)
{ {