Skip to content

Commit 911ad8f

Browse files
committed
Avoiding a memory leak in the Timer class SchedulerLoop
Update to my previous commit. The same change needed to be made here.
1 parent eb905f0 commit 911ad8f

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)