From 95277bae45a641427a30287592c86bb45d276ebe Mon Sep 17 00:00:00 2001 From: "John C. Daub" Date: Fri, 5 Jul 2013 09:58:20 -0500 Subject: [PATCH] Break a retain cycle --- SDWebImage/SDWebImageDownloader.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SDWebImage/SDWebImageDownloader.m b/SDWebImage/SDWebImageDownloader.m index 10cd983e..a3411cb9 100644 --- a/SDWebImage/SDWebImageDownloader.m +++ b/SDWebImage/SDWebImageDownloader.m @@ -160,6 +160,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; [wself.lastAddedOperation addDependency:operation]; wself.lastAddedOperation = operation; } + operation = nil; // break retain cycle }]; return operation;