1
0
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:
Salman Ahmed 2022-03-04 10:01:07 +03:00
parent 76c293b9e9
commit 129c290ca0

View File

@ -94,5 +94,11 @@ namespace osu.Game.Overlays.Profile.Header
Hide();
}
}
protected override void Dispose(bool isDisposing)
{
cancellationTokenSource?.Cancel();
base.Dispose(isDisposing);
}
}
}