mirror of
https://github.com/ppy/osu.git
synced 2025-03-22 21:00:33 +08:00
Make disposal of tracker idempotent for operations
This commit is contained in:
parent
18b309a195
commit
7f89d9117d
@ -52,5 +52,13 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
leasedInProgress?.Return();
|
||||
leasedInProgress = null;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
// base call does an UnbindAllBindables().
|
||||
// clean up the leased reference here so that it doesn't get returned twice.
|
||||
leasedInProgress = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user