Skip to content

Commit 215908d

Browse files
add .Dispose() after cancel()
1 parent a1ce3f9 commit 215908d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CommunityToolkit.Maui/Behaviors/Validators/ValidationBehavior.shared.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ void ResetValidationTokenSource(CancellationTokenSource? newTokenSource)
424424
try
425425
{
426426
validationTokenSource?.Cancel();
427+
validationTokenSource?.Dispose();
427428
}
428429
catch (ObjectDisposedException) { }
429430
finally

0 commit comments

Comments
 (0)