Commit c411130
fix: tools metrics dispatcher related memory leak (#3427)
playModeStateChanged never gets unsubscribed in NetworkManager and keeps
Multiplayer Tools MetricsDispatcher instances alive through
NetworkMetrics when domain reload is disabled.
Jira ticket: [MTT-11638](https://jira.unity3d.com/browse/MTT-11638)
## Changelog
- Fixed: Memory leaks when domain reload is disabled.
## Testing and Documentation
- No tests have been added.
## Backport
Requires backport to v1.x. (#3428)
---------
Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>1 parent 4fd19b4 commit c411130
File tree
2 files changed
+5
-0
lines changed- com.unity.netcode.gameobjects
- Runtime/Core
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
1632 | 1636 | | |
1633 | 1637 | | |
1634 | 1638 | | |
| |||
0 commit comments