Commit 2a1e12f
add dealloc function to RCTAnimatedModuleProvider (#54440)
Summary:
Pull Request resolved: #54440
## Changelog:
[Internal] [Changed] - add dealloc function to RCTAnimatedModuleProvider
just in case RCTAnimatedModuleProvider is destroyed earlier than AnimatedModule when react instance tears down, then when AnimatedModule (which owns NativeAnimatedNodesManager) is destroyed, even if StopOnRenderCallback is invoked, it doesn't invalidate displayLink (since strongSelf is nullptr)
Reviewed By: javache
Differential Revision: D86459439
fbshipit-source-id: 707bbe91228b9c062dfbb324fedca1914663650b1 parent 7c91517 commit 2a1e12f
1 file changed
Lines changed: 29 additions & 4 deletions
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
29 | 49 | | |
30 | 50 | | |
31 | 51 | | |
| |||
69 | 89 | | |
70 | 90 | | |
71 | 91 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
76 | 100 | | |
| 101 | + | |
77 | 102 | | |
78 | 103 | | |
79 | 104 | | |
| |||
0 commit comments