Is there anything else I can do to release memory? I have an app with several lenses. I am already using the following to try to stop the lens and release some memory.
- clear()
- removing observer for specific lens
- removing observer for groupID
- removing output
5.stopRecording() - cameraKit.stop()
- cameraKit.stop() with completion
- stopRunning()
- removing all inputs and outputs
but when I check the memory while using the app, it still piles up when I open a new lens and would crash when I open a certain number of lenses even when I am calling all of those functions after exiting the previously used lens.