[corlib] Dispose linked tokens connections when disposing the resulting CancellationT...
authorJérémie Laval <jeremie.laval@gmail.com>
Mon, 23 Jul 2012 10:47:48 +0000 (11:47 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Mon, 23 Jul 2012 10:48:55 +0000 (11:48 +0100)
commit253c5fb1d3107a90fd92cb3275bf7bd8cffe0d8f
tree76b51723df7316f5b02773212f868eb35f65877c
parent208c8838061df88a8723561f82bfa8ffa290f000
[corlib] Dispose linked tokens connections when disposing the resulting CancellationTokenSource

Based on baulig's patch: https://github.com/baulig/mono/commit/3ee4f7600b8efe61f7a701a93fffed8373b7b4b3
mcs/class/corlib/System.Threading/CancellationTokenSource.cs
mcs/class/corlib/Test/System.Threading/CancellationTokenSourceTest.cs