Skip to content

Commit a9e0a36

Browse files
authored
Merge pull request #2062 from Unity-Technologies/bugfix/uum-76306-part-2
Avoiding a memory leak in the Timer class SchedulerLoop
2 parents eb905f0 + 911ad8f commit a9e0a36

File tree

1 file changed

+1
-1
lines changed
  • mcs/class/corlib/System.Threading

1 file changed

+1
-1
lines changed

mcs/class/corlib/System.Threading/Timer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ int RunSchedulerLoop () {
427427
}
428428

429429
if (needReSort) {
430-
list.Sort(comparer);
430+
list.Sort(comparer.Compare);
431431
needReSort = false;
432432
}
433433

0 commit comments

Comments
 (0)