Skip to content

Commit

Permalink
Fix brave/brave-ios#8738, brave/brave-ios#8708: Fix memory leak in `S…
Browse files Browse the repository at this point in the history
…ettingsViewController` (brave/brave-ios#8739)
  • Loading branch information
StephenHeaps committed Feb 6, 2024
1 parent abf245f commit 9b585b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ class SettingsViewController: TableViewController {
text: Strings.Privacy.browserLock,
detailText: Strings.Privacy.browserLockDescription,
image: UIImage(braveSystemNamed: "leo.biometric.login"),
accessory: .view(SwitchAccessoryView(initialValue: Preferences.Privacy.lockWithPasscode.value, valueChange: { isOn in
accessory: .view(SwitchAccessoryView(initialValue: Preferences.Privacy.lockWithPasscode.value, valueChange: { [unowned self] isOn in
if isOn {
Preferences.Privacy.lockWithPasscode.value = isOn
} else {
Expand Down

0 comments on commit 9b585b6

Please sign in to comment.