Commit 66eb7f4
authored
fix: memory leaks due to timer references outliving the timers (#2773)
* fix: remove unused setInterval spy
* fix: delete timer references after callback
This way we don't hold any strong reference to potentially
large setTimeout/setImmediate contexts any more.
Since we use neither `clearTimeout`, nor `clearImmediate`,
we can just ignore those cases and don't need to install
spies to handle deliberate clears.
1 parent e92cdfa commit 66eb7f4
2 files changed
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
| 596 | + | |
| 597 | + | |
599 | 598 | | |
600 | 599 | | |
601 | 600 | | |
602 | | - | |
603 | | - | |
604 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
605 | 612 | | |
606 | 613 | | |
607 | 614 | | |
608 | 615 | | |
609 | | - | |
610 | 616 | | |
611 | 617 | | |
612 | 618 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 619 | + | |
| 620 | + | |
616 | 621 | | |
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
620 | | - | |
621 | 625 | | |
622 | 626 | | |
623 | 627 | | |
| |||
762 | 766 | | |
763 | 767 | | |
764 | 768 | | |
765 | | - | |
766 | 769 | | |
767 | 770 | | |
768 | 771 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
537 | | - | |
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
542 | 540 | | |
543 | | - | |
544 | 541 | | |
545 | 542 | | |
546 | 543 | | |
| |||
0 commit comments