1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Add comment explaining dispose logic

This commit is contained in:
Dean Herbert 2019-09-06 01:14:37 +09:00
parent 5b094f8e1d
commit d6cdde552d

View File

@ -41,6 +41,7 @@ namespace osu.Game.Rulesets
{
base.Dispose(isDisposing);
// ensures any potential database operations are finalised before game destruction.
foreach (var c in configCache.Values)
(c as IDisposable)?.Dispose();
}