Commit 0572462
authored
Change handler reference to weak pointer to prevent memleaks (#3987)
This PR fixes a memory leak by breaking a retain cycle between RNGestureHandler and RNManualActivationRecognizer. The RNGestureHandler owns the _manualActivationRecognizer with a strong reference, and previously the recognizer was holding a strong reference back to the handler, creating a cycle that prevented both objects from being deallocated.1 parent 1f40473 commit 0572462
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments