1
0
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:
Dean Herbert 2016-11-21 21:35:10 +09:00
parent 027d71ffd8
commit 41a84ba00c

View File

@ -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)