From 0aa9a33dff6beee956bf7caf3a53dfcee267ec6f Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Mon, 8 Jun 2015 00:52:36 +0200 Subject: [PATCH] Fixes retain cycle in example app. --- .../WikipediaImageSearch/Views/iOS/WikipediaSearchCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxExample/RxExample/Examples/WikipediaImageSearch/Views/iOS/WikipediaSearchCell.swift b/RxExample/RxExample/Examples/WikipediaImageSearch/Views/iOS/WikipediaSearchCell.swift index 8592b493..917161d6 100644 --- a/RxExample/RxExample/Examples/WikipediaImageSearch/Views/iOS/WikipediaSearchCell.swift +++ b/RxExample/RxExample/Examples/WikipediaImageSearch/Views/iOS/WikipediaSearchCell.swift @@ -37,7 +37,7 @@ public class WikipediaSearchCell: UITableViewCell { self.URLOutlet.text = viewModel.searchResult.URL.absoluteString ?? "" viewModel.imageURLs - >- self.imagesOutlet.rx_subscribeItemsWithIdentifierTo("ImageCell") { (_, _, URL, cell: CollectionViewImageCell) in + >- self.imagesOutlet.rx_subscribeItemsWithIdentifierTo("ImageCell") { [unowned self] (_, _, URL, cell: CollectionViewImageCell) in let loadingPlaceholder: UIImage? = nil cell.image = self.imageService.imageFromURL(URL)