Fix memory leak from object pools.

This commit is contained in:
2023-04-21 12:18:29 +08:00
parent c39a02a1c2
commit 2784544884
4 changed files with 27 additions and 10 deletions

View File

@@ -524,6 +524,8 @@ namespace Cryville.Crtr {
Game.AudioClient.Start();
Game.AudioSession = Game.AudioSequencer.NewSession();
inputProxy.Deactivate();
inputProxy = null;
judge = null;
if (nbus != null) { nbus.Dispose(); nbus = null; }
if (tbus != null) { tbus.Dispose(); tbus = null; }
if (bbus != null) { bbus.Dispose(); bbus = null; }