GrapheneOS / Camera

Modern camera app focused on privacy and security with QR & barcode scanning.
https://grapheneos.org/
MIT License
826 stars 87 forks source link

Memory leak when the app is relaunched using secure mode shortcut #365

Closed empratyush closed 1 year ago

empratyush commented 1 year ago

There is a memory leak when the app is relauched using secure mode shortcut (double press the power button) autoRotateSettingObserver is leaking because it never gets unregistered.

The fix is simple, though handling of device rotation within the app is overly complex it needs refactoring.