1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 18:27:26 +08:00

Add null-conditional to acesses in dispose methods

Such a terrible mistake, the finalizer may be called while the dependencies have an instance but the local itself doesn't have a value yet.
This commit is contained in:
Salman Ahmed 2020-04-12 02:24:36 +03:00
parent 31b494b0b7
commit 97340da2f2

View File

@ -343,7 +343,7 @@ namespace osu.Game.Rulesets.UI
}
// Dispose the components created by this dependency container.
dependencies.Dispose();
dependencies?.Dispose();
}
}