From b6c5797394233d78aa332d48034959dec4e0ba3b Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 14 Oct 2021 12:55:02 +0900 Subject: [PATCH] Fix `AudioFilter` test not stopping track on forced exit --- osu.Game.Tests/Visual/Audio/TestSceneAudioFilter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osu.Game.Tests/Visual/Audio/TestSceneAudioFilter.cs b/osu.Game.Tests/Visual/Audio/TestSceneAudioFilter.cs index 0107632f6e..99be72e958 100644 --- a/osu.Game.Tests/Visual/Audio/TestSceneAudioFilter.cs +++ b/osu.Game.Tests/Visual/Audio/TestSceneAudioFilter.cs @@ -163,5 +163,11 @@ namespace osu.Game.Tests.Visual.Audio } private void waitTrackPlay() => AddWaitStep("Let track play", 10); + + protected override void Dispose(bool isDisposing) + { + base.Dispose(isDisposing); + track?.Dispose(); + } } }