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