Move finaliser inside disposal region

This commit is contained in:
Dean Herbert 2019-07-02 22:21:56 +09:00
parent 31b1480263
commit a26b14a4f8

View File

@ -46,11 +46,6 @@ namespace osu.Game.Beatmaps
skin = new RecyclableLazy<Skin>(GetSkin);
}
~WorkingBeatmap()
{
Dispose(false);
}
protected virtual Track GetVirtualTrack()
{
const double excess_length = 1000;
@ -229,6 +224,11 @@ namespace osu.Game.Beatmaps
beatmapCancellation.Cancel();
}
~WorkingBeatmap()
{
Dispose(false);
}
#endregion
public class RecyclableLazy<T>