not sure why we create two tasstatemanagers when engaging tastudio... i guess one is used in case theres existing data (even if theres no existing data). anyway, this fixes the leak

This commit is contained in:
zeromus 2020-08-27 15:50:49 -04:00
parent 46c15f94a9
commit faa3d52500
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ namespace BizHawk.Client.Common
bl.GetLump(BinaryStateLump.StateHistory, false, delegate(BinaryReader br, long length)
{
TasStateManager?.Dispose();
TasStateManager = ZwinderStateManager.Create(br, TasStateManager.Settings, IsReserved);
});
}