mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09: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:
@ -343,7 +343,7 @@ namespace osu.Game.Rulesets.UI
|
||||
}
|
||||
|
||||
// Dispose the components created by this dependency container.
|
||||
dependencies.Dispose();
|
||||
dependencies?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user