1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 01:43:39 +08:00

Move finaliser inside disposal region

This commit is contained in:
Dean Herbert
2019-07-02 22:21:56 +09:00
Unverified
parent 31b1480263
commit a26b14a4f8
+5 -5
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>