Skip to content

Commit

Permalink
出错的情况循环引用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lingtonke committed Apr 9, 2018
1 parent f02fec6 commit c98f896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LKImageKit/Core/Class/LKImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,10 @@ - (void)handleRequestFinish:(LKImageRequest *)request image:(UIImage *)image isF
if (![request isEqual:self.failureImageRequest])
{
[self dealWithRequest:self.failureImageRequest];
__weak LKImageView *wself = self;
[self.imageManager sendRequest:self.failureImageRequest
completion:^(LKImageRequest *request, UIImage *image, BOOL isFromSyncCache) {
[self handleRequestFinish:request image:image isFromSyncCache:isFromSyncCache];
[wself handleRequestFinish:request image:image isFromSyncCache:isFromSyncCache];

}];
}
Expand Down

0 comments on commit c98f896

Please sign in to comment.