Search Issue Tracker

Active

Votes

1

Found in

2018.4

2019.4

2019.4.26f1c1

2020.3

Issue ID

1335916

Regression

No

UnityEngine.UI.ListPool<Mask> retains a reference to a Mask object after loading a new scene

uGUI

-

How to reproduce:
1. Open the attached project
2. Open Launch Scene
3. Click Play
4. Click Go To Next Scene in the Game View

Expected result: Nothing is logged to the Console
Actual result: Memory Leak is logged to the Console

Reproducible with: 2018.4.34f1, 2019.4.26f1, 2020.3.9f1
Could not test with: 2021.1.8f1, 2021.2.0a17 (typeof(Mask).Assembly.GetTypes() does not contain ListPool)

Note:
1. The count of List<Mask> is zero, but the first element of the list is not null, but a Mask object.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.