Skip to content

Commit

Permalink
Merge pull request #2055 from Unity-Technologies/bugfix/uum-76306
Browse files Browse the repository at this point in the history
Avoiding a memory leak in the Timer class SchedulerLoop
  • Loading branch information
bholmes authored Aug 23, 2024
2 parents 93b412d + 8536598 commit 4c8cd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcs/class/corlib/System.Threading/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ int RunSchedulerLoop () {
var comparer = new TimerComparer();

if (needReSort) {
list.Sort(comparer);
list.Sort(comparer.Compare);
needReSort = false;
}

Expand Down

0 comments on commit 4c8cd20

Please sign in to comment.