How to reproduce:
1. Open the attached “IN-104975” project
2. Open the “SampleScene”
3. In the Hierarchy, select the “Canvas” GameObject
4. In the Inspector, make sure the “Wrong Allocator Demo (Script)” Component is disabled
5. Enter Play mode
6. Observe the result in the Console window
Expected result: The memory is stable
Actual result: The memory is increasing
Reproducible with: 1.2.1 (2022.3.65f1), 1.4.0-pre.3 (2022.3.65f1, 6000.0.54f1, 6000.1.13f1, 6000.2.0b11, 6000.3.0a3)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Note:
If the memory leak message is not appearing in the the Console window, complete the following:
1. Enable the “Wrong Allocator Demo (Script)” Component and the “Fix” checkbox and enter Play mode
2. Exit Play mode, disable the “Fix” checkbox
3. Enter and exit Play mode
4. Disable the “Wrong Allocator Demo (Script)” Component and enter Play mode