Commit f2898d4
VirtualViewContainerStateExperimental remove() memory leak fix (#54437)
Summary:
Pull Request resolved: #54437
## Changelog: [Internal]
VirtualView ID references (strings) are currently not being removed from the bookkeeping sets V, P, HPV in VirtualViewContainerStateExperimental upon deletion.
This PR provides a fix by extending the parent container's `remove()` function and correctly removing the IDs from the bookkeeping sets.
Reviewed By: yungsters
Differential Revision: D86369358
fbshipit-source-id: de46cc5776ff465dd3c834a6eba6a9d1c460d2d81 parent 6addea5 commit f2898d4
1 file changed
Lines changed: 7 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments