mirror of
https://github.com/ppy/osu
synced 2025-01-05 13:50:03 +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);
|
||||
}
|
||||
|
||||
~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>
|
||||
|
Loading…
Reference in New Issue
Block a user