mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
fix memory leaks
This commit is contained in:
parent
e385eedf4c
commit
cf31891a97
@ -284,6 +284,7 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
oldService?.OnDisableBaseService(service);
|
||||
service.OnEnableBaseService(oldService);
|
||||
_threadServiceClonesSet.Clear();
|
||||
OnServiceChanged(service);
|
||||
}
|
||||
}
|
||||
|
@ -565,10 +565,8 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
private void Cleanup(bool disposing)
|
||||
{
|
||||
_sortIncBuffer.ReadonlyDispose();
|
||||
//_sortExcBuffer.ReadonlyDispose();// использует общую памяять с _sortIncBuffer;
|
||||
_sortIncChunckBuffer.ReadonlyDispose();
|
||||
//_sortExcChunckBuffer.ReadonlyDispose();// использует общую памяять с _sortIncChunckBuffer;
|
||||
_sortIncBuffer.ReadonlyDispose(); // использует общую памяять с _sortExcBuffer;
|
||||
_sortIncChunckBuffer.ReadonlyDispose(); // использует общую памяять с _sortExcChunckBuffer;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -92,6 +92,12 @@ namespace DCFApixels.DragonECS
|
||||
|
||||
_injector = injectorBuilder.Build(this);
|
||||
}
|
||||
~EcsPipeline()
|
||||
{
|
||||
if (_isDestoryed) { return; }
|
||||
if (_isInit == false) { Init(); }
|
||||
Destroy();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region GetProcess
|
||||
|
Loading…
Reference in New Issue
Block a user