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

fix: fix the memory leak #2907

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

wood1986
Copy link
Contributor

@wood1986 wood1986 commented Nov 1, 2022

fix #2906 and #2809

@freeboub
Copy link
Collaborator

freeboub commented Nov 2, 2022

looks OK for me, can you add a small comment in changeLog please ?

@freeboub freeboub added the 1 label Nov 2, 2022
@wood1986
Copy link
Contributor Author

wood1986 commented Nov 4, 2022

done

@freeboub
Copy link
Collaborator

freeboub commented Nov 7, 2022

looks OK for me, should I merge this PR ?

@wood1986
Copy link
Contributor Author

wood1986 commented Nov 8, 2022

I think this can be merged. But do not publish a new version until we resolve #2908

@freeboub freeboub merged commit e64d854 into TheWidlarzGroup:master Nov 8, 2022
@wood1986 wood1986 deleted the bugfix/ios-memory-leak branch December 17, 2022 21:48
@cguino
Copy link
Contributor

cguino commented Jul 6, 2023

The memory leak still exists.

A quick way to reproduce is using this sample made by @wood1986
https://github.com/wood1986/react-native-fullscreen-example/tree/bug/memory-leak

Add a breakpoint in deinit ( RCTVideo l.161 ), it's never called

  • Some [weak self] are missing
  • I found two delegate that are not weak. (delegate should always be weak, otherwise it makes a retain cycle)

@VMBindraban
Copy link

@cguino Was this leak fixed in a future release? I am currently running into weak reference overflow errors.

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

Successfully merging this pull request may close these issues.

iOS RCTVideoPlayerViewController wont call deinit when unmount
4 participants