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:
parent
feca1e8d0d
commit
0e047941e9
|
@ -94,6 +94,7 @@
|
|||
self.completionBlock(self.finishedCount, self.skippedCount);
|
||||
self.completionBlock = nil;
|
||||
}
|
||||
self.progressBlock = nil;
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue