Reproduction steps:
1. Open the attached project “MemoryLeakBug“
2. Open the scene “Assets/Scenes/SampleScene”
3. Enter the Play Mode
4. Observe the Console Window
Expected result: There are no memory leaks detected
Actual result: Multiple memory leaks are being detected
Reproducible with: 2022.2.0a12, 2022.2.6f1, 2023.1.0b3
Not reproducible with: 2021.3.16f1, 2022.2.0a11, 2023.2.0a1, 2023.2.0a3
Couldn't test with: 2020.3.44f1 (“'UnsafeUtility' does not contain a definition for 'SetLeakDetectionMode'“)
Fixed in: 2023.2.0a1
Reproducible on: Windows 11