Permalink
Browse files

more strongSelf to avoid potential ref cycle warnings.

  • Loading branch information...
1 parent 03dc132 commit 65d0d2baf951425839f2f77c17138ab1784d29a3 Zach Drayer committed Jun 6, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 WWDCDownloader/WWDCWebsiteInteractionController.m
View
4 WWDCDownloader/WWDCWebsiteInteractionController.m
@@ -122,9 +122,9 @@ - (IBAction) download:(id) sender {
[unorderedListElement.children wwdc_enumerateObjectsUsingBlock:^(DOMObject *listObject, unsigned listIndex, BOOL *stopListEnumeration) {
__strong typeof(weakSelf) strongSelf = weakSelf;
if (strongSelf->_loggedIn) {
- [self findDownloadsFromDOMLIElement:(DOMHTMLLIElement *)listObject];
+ [strongSelf findDownloadsFromDOMLIElement:(DOMHTMLLIElement *)listObject];
} else {
- [self loginFromDOMLIElement:(DOMHTMLLIElement *)listObject];
+ [strongSelf loginFromDOMLIElement:(DOMHTMLLIElement *)listObject];
*stopListEnumeration = YES;
}

0 comments on commit 65d0d2b

Please sign in to comment.