Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #8738, #8708: Fix memory leak in SettingsViewController (#8739)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHeaps committed Feb 6, 2024
1 parent 0b023e3 commit 93f8b01
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 93f8b01

Please sign in to comment.