Clear SDWebImagePrefetcher progressBlock when it has completed

If progressblock captures objects, captured objects remain until next SDWebImagePrefetcher works.
So, nil clear progressBlock as well as completionBlock.
This commit is contained in:
Katsuma Ito 2015-01-20 18:31:07 +08:00
parent feca1e8d0d
commit 0e047941e9
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@
self.completionBlock(self.finishedCount, self.skippedCount);
self.completionBlock = nil;
}
self.progressBlock = nil;
}
}];
}