onfido-ios-sdk
onfido-ios-sdk copied to clipboard
Memory leak in Onfido module
What was the expected behaviour?
After dismissing OnfidoFlow, we expect all Onfido related memory to be freed.
What happened instead?
Using Xcode Memory Graph tool we can see that a lot of Onfido Flow related code is in memory. Views, ViewControllers, Coordinators.
Version info:
- Onfido SDK (Debug/Release): 22.3.0
- iOS: 14.7.1
- Xcode: 12.5.1
- Device/Simulator: Both
Integration configuration:
https://github.com/onfido/onfido-ios-sdk/tree/master/SampleApp
Steps to reproduce:
Using your own sample app, tap on "Verify me!" and then close the flow. Doing it multiple times during same session increases leaked objects count reliably.