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

Fix nullability inspection on disposal path

This commit is contained in:
Dean Herbert 2022-11-30 17:49:08 +09:00
parent 4215f4f5d7
commit bb0237d4a9

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -28,7 +29,8 @@ namespace osu.Game.Rulesets.UI
{
base.Dispose(isDisposing);
rulesetDependencies?.Dispose();
if (rulesetDependencies.IsNotNull())
rulesetDependencies.Dispose();
}
}
}