mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +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:
parent
31b494b0b7
commit
97340da2f2
@ -343,7 +343,7 @@ namespace osu.Game.Rulesets.UI
|
||||
}
|
||||
|
||||
// Dispose the components created by this dependency container.
|
||||
dependencies.Dispose();
|
||||
dependencies?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user