mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 03:33:39 +08:00
Fix PreviewTrack not disposing its owned audio Track
This commit is contained in:
@@ -105,5 +105,11 @@ namespace osu.Game.Audio
|
||||
/// Retrieves the audio track.
|
||||
/// </summary>
|
||||
protected abstract Track? GetTrack();
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
Track?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user