mirror of
https://github.com/ppy/osu
synced 2025-02-01 19:02:00 +00:00
Move finaliser inside disposal region
This commit is contained in:
parent
31b1480263
commit
a26b14a4f8
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user