Fix `PreviewTrack` not disposing its owned audio `Track`

This commit is contained in:
Dean Herbert 2022-08-05 14:15:01 +09:00
parent 0d73bfa451
commit 786af81274
1 changed files with 6 additions and 0 deletions

View File

@ -105,5 +105,11 @@ public void Stop()
/// Retrieves the audio track. /// Retrieves the audio track.
/// </summary> /// </summary>
protected abstract Track? GetTrack(); protected abstract Track? GetTrack();
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
Track?.Dispose();
}
} }
} }