Skip to content

Commit

Permalink
Merge pull request #21520 from frenzibyte/fix-preview-track-disposal
Browse files Browse the repository at this point in the history
Fix preview track disposal potentially leaving game track muted
  • Loading branch information
smoogipoo authored Dec 6, 2022
2 parents 9ddc2f4 + a457a2f commit e47f933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osu.Game/Audio/PreviewTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public void Stop()
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);

Stop();
Track?.Dispose();
}
}
Expand Down

0 comments on commit e47f933

Please sign in to comment.