AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

Memory leaks: field c hangs onto a Context reference; and CallbackContext is leaked from within AFKeyStore #199

Open markproxy opened 2 years ago

markproxy commented 2 years ago

Report

Plugin Version

6.5.2

On what Platform are you having the issue?

android

What did you do?

Used Leak Canary to monitor for leaks in an application that uses this plugin, and found two leaks.

What did you expect to happen?

No leaks

What happened instead?

I tracked down two different leaks:

Please provide any other relevant information.

I found these leaks in an earlier version of the plugin, but I see in code that they still exist.

markproxy commented 2 years ago

I have fixes for both of these leaks, and I plan to share them in a PR.

markproxy commented 2 years ago

PR: https://github.com/AppsFlyerSDK/appsflyer-cordova-plugin/pull/200