mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Add finalizer logic for WorkingBeatmap for now.
This commit is contained in:
parent
027d71ffd8
commit
41a84ba00c
@ -89,6 +89,12 @@ namespace osu.Game.Beatmaps
|
||||
set { lock (trackLock) track = value; }
|
||||
}
|
||||
|
||||
|
||||
~WorkingBeatmap()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
public WorkingBeatmap(Beatmap beatmap)
|
||||
{
|
||||
this.beatmap = beatmap;
|
||||
@ -116,6 +122,7 @@ namespace osu.Game.Beatmaps
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public void TransferTo(WorkingBeatmap working)
|
||||
|
Loading…
Reference in New Issue
Block a user