Unity Issue Tracker - The EntityCommandBuffer.SetSharedComponentManaged() never frees the GCHandle and causes a memory leak when setting shared component on an entity
Fixed
ECSB-1415
The EntityCommandBuffer.SetSharedComponentManaged() never frees the GCHandle and causes a memory leak when setting shared component on an entity
Package: Entity Component System (ECS)
Open
1.2.X
Fixed
1.3.X
This was fixed in com.unity.entities 1.3.10
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Observe the MonoUsed value on the screen
Expected result: MonoUsed value fluctuates and doesn't increase forever
Actual result: MonoUsed keeps going up