From 63d60d982601a3377fc0f3b8a15b3e7ea3f3bf08 Mon Sep 17 00:00:00 2001 From: Pete Koat Date: Mon, 30 Sep 2013 17:02:32 -0700 Subject: [PATCH] Removed strong reference to UIImageView which was causing a crash in the nested block. --- SDWebImage/UIImageView+WebCache.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SDWebImage/UIImageView+WebCache.m b/SDWebImage/UIImageView+WebCache.m index fa772236..7df6af87 100644 --- a/SDWebImage/UIImageView+WebCache.m +++ b/SDWebImage/UIImageView+WebCache.m @@ -58,12 +58,11 @@ static char operationArrayKey; if (!wself) return; dispatch_main_sync_safe(^ { - __strong UIImageView *sself = wself; - if (!sself) return; + if (!wself) return; if (image) { - sself.image = image; - [sself setNeedsLayout]; + wself.image = image; + [wself setNeedsLayout]; } if (completedBlock && finished) {