onfido-ios-sdk icon indicating copy to clipboard operation
onfido-ios-sdk copied to clipboard

Memory leak in Onfido module

Open ivan-gaydamakin opened this issue 3 years ago • 2 comments

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.

image image

ivan-gaydamakin avatar Sep 07 '21 13:09 ivan-gaydamakin