Commit efa9bbcf authored by David Jean's avatar David Jean Committed by Commit Bot

[ios] Fixed memory cycle in password search

Thanks pkl@ for spotting this.

Bug: 898678
Change-Id: I74d2a11e89b62fef5a2a0c42f4d6b7c4d5d1519e
Reviewed-on: https://chromium-review.googlesource.com/c/1298720
Commit-Queue: David Jean <djean@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603013}
parent 145b9f4d
......@@ -831,12 +831,14 @@ blacklistedFormItemWithText:(NSString*)text
if (!strongSelf)
return;
[strongSelf clearSectionWithIdentifier:SectionIdentifierSavedPasswords
ifEmpty:savedForms_.empty()];
[strongSelf clearSectionWithIdentifier:SectionIdentifierBlacklist
ifEmpty:blacklistedForms_.empty()];
[strongSelf clearSectionWithIdentifier:SectionIdentifierSearchPasswordsBox
ifEmpty:savedForms_.empty() &&
blacklistedForms_.empty()];
ifEmpty:strongSelf->savedForms_.empty()];
[strongSelf
clearSectionWithIdentifier:SectionIdentifierBlacklist
ifEmpty:strongSelf->blacklistedForms_.empty()];
[strongSelf
clearSectionWithIdentifier:SectionIdentifierSearchPasswordsBox
ifEmpty:strongSelf->savedForms_.empty() &&
strongSelf->blacklistedForms_.empty()];
}
completion:^(BOOL finished) {
SavePasswordsCollectionViewController* strongSelf = weakSelf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment