Commit bfc2bd5
authored
fix: tools metrics dispatcher related memory leak [Backport] (#3428)
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
This is a backport of #34271 parent 9687c8a commit bfc2bd5
File tree
2 files changed
+4
-0
lines changed- com.unity.netcode.gameobjects
- Runtime/Core
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1306 | 1309 | | |
1307 | 1310 | | |
1308 | 1311 | | |
| |||
0 commit comments