Commit a3942cd
committed
fix(Autofocus): guard depthPickingPass/copyPass against double dispose
EffectComposerImpl.dispose() disposes every pass it holds, including
these two added via composer.addPass - if Autofocus unmounts alongside
its ancestor EffectComposer, its own cleanup disposed them a second
time. This collision only becomes reachable now that the composer
lifecycle fix (previous commit) actually disposes the composer on
unmount - previously it leaked and never disposed at all, so it never
collided with Autofocus's own cleanup.1 parent 7df1c67 commit a3942cd
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | 39 | | |
23 | 40 | | |
| |||
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
58 | | - | |
59 | | - | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| |||
0 commit comments