mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Dispose cancellation token source on disposal
This commit is contained in:
parent
76c293b9e9
commit
129c290ca0
@ -94,5 +94,11 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
cancellationTokenSource?.Cancel();
|
||||
base.Dispose(isDisposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user