Skip to content

Commit

Permalink
Avoid a retain cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
sferrini committed Feb 18, 2016
1 parent 52dbd58 commit f137cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EarlGrey/Core/GREYElementInteraction.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ - (instancetype)performAction:(id<GREYAction>)action error:(__strong NSError **)
error:&actionError];

if (elements.count > 1) {
actionError = [self grey_errorForMultipleMatchingElements:elements];
actionError = [strongSelf grey_errorForMultipleMatchingElements:elements];
} else {
id element = [elements firstObject];
// Notification that the action is to be performed on the found element.
Expand Down

0 comments on commit f137cdd

Please sign in to comment.