Unity Issue Tracker - New items are created and old ones remain in memory
Closed
UUM-25816
New items are created and old ones remain in memory
Unity: UI Toolkit Framework
As Designed
2023.1.X
2022.2.X
We have concluded that there is no memory leak. The memory can take some time to be reclaimed as is usually observed with the C# Garbage collector.
How to reproduce:
1. Open the attached project ‘TreeViewBug.zip’
2. Open the Environment Layer Stack Window (Window>Environment>Tree View Test)
3. Repeatedly press the ‘Refresh Items' button
Expected result: No ‘alive’ items are logged in the Console
Actual result: 'Alive' items are logged in the Console
Reproducible with: 2022.2.4f1, 2023.1.0b1
Can’t test with: 2020.3.44f1, 2021.3.17f1 (Errors in the Console)
Reproduced on: macOS 13.0.1 (Intel)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?