Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNCWebViewManager.mWebChromeClient cause memory leak #1047

Closed
jinshiyi11 opened this issue Nov 27, 2019 · 1 comment
Closed

RNCWebViewManager.mWebChromeClient cause memory leak #1047

jinshiyi11 opened this issue Nov 27, 2019 · 1 comment

Comments

@jinshiyi11
Copy link

Bug description:
in RNCWebViewManager.setupWebChromeClient function
mWebChromeClient = new RNCWebChromeClient(reactContext, webView)
mWebChromeClient hold reference to reactContext,which is current activity,but in onDropViewInstance the reference is not cleared,that cause memory leak

To Reproduce:
create RNCWebView instance ,then destroy it

Expected behavior:
no memory leak

Screenshots/Videos:

Environment:

  • OS:android
  • OS version:
  • react-native version:0.60.5
  • react-native-webview version:v7.2.5
@github-actions
Copy link

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant