Commit a14bdfe
fix(animations): Ensure elements are removed from the cache after leave animation. (#50929)
This commit fixes a memory leak.
`_namespaceLookup` was cleared before the call to `processLeaveNode()` which was using the lookup.
Without that lookup `clearElementCache()` wasn't called thus keeping a reference to the element.
Fixes #24197 & #50533
PR Close #509291 parent 5828eb9 commit a14bdfe
File tree
2 files changed
+15
-27
lines changed- packages/animations/browser
- src/render
- test/render
2 files changed
+15
-27
lines changedLines changed: 5 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | 511 | | |
520 | 512 | | |
521 | 513 | | |
| |||
640 | 632 | | |
641 | 633 | | |
642 | 634 | | |
| 635 | + | |
643 | 636 | | |
644 | | - | |
645 | | - | |
646 | | - | |
| 637 | + | |
| 638 | + | |
647 | 639 | | |
648 | | - | |
649 | 640 | | |
650 | 641 | | |
651 | 642 | | |
652 | 643 | | |
| 644 | + | |
| 645 | + | |
653 | 646 | | |
654 | | - | |
655 | | - | |
656 | 647 | | |
657 | 648 | | |
658 | 649 | | |
| |||
1314 | 1305 | | |
1315 | 1306 | | |
1316 | 1307 | | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | 1308 | | |
1328 | 1309 | | |
1329 | 1310 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | | - | |
118 | | - | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
| 124 | + | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
0 commit comments