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 authored and nuo-xu committed Feb 6, 2024
1 parent eb47f5c commit a2146c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,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 a2146c9

Please sign in to comment.