From 04bb1c13f858b0ff51eb1df02ae48b72dc7eb14e Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Thu, 13 Mar 2025 02:23:24 +0900 Subject: [PATCH] Cancel + dispose CTS --- osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs b/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs index 19fcb44be7..941d293d9d 100644 --- a/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs +++ b/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs @@ -198,5 +198,13 @@ namespace osu.Game.Overlays.Dashboard.Friends newList.FadeIn(200, Easing.OutQuint); } } + + protected override void Dispose(bool isDisposing) + { + base.Dispose(isDisposing); + + listLoadCancellation?.Cancel(); + listLoadCancellation?.Dispose(); + } } }