mirror of https://github.com/ppy/osu
Fix `PreviewTrack` not disposing its owned audio `Track`
This commit is contained in:
parent
0d73bfa451
commit
786af81274
|
@ -105,5 +105,11 @@ public void Stop()
|
|||
/// Retrieves the audio track.
|
||||
/// </summary>
|
||||
protected abstract Track? GetTrack();
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
Track?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue