Skip to content

Commit

Permalink
Merge pull request #2062 from Unity-Technologies/bugfix/uum-76306-part-2
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 Oct 2, 2024
2 parents eb905f0 + 911ad8f commit a9e0a36
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 @@ -427,7 +427,7 @@ int RunSchedulerLoop () {
}

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

Expand Down

0 comments on commit a9e0a36

Please sign in to comment.