Merge pull request #522 from redhand/master

Removed strong reference to UIImageView in nested block
This commit is contained in:
Olivier Poitrey 2013-09-30 22:17:29 -07:00
commit 94f51343b8
1 changed files with 3 additions and 4 deletions

View File

@ -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)
{