1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +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. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
@ -28,7 +29,8 @@ namespace osu.Game.Rulesets.UI
{ {
base.Dispose(isDisposing); base.Dispose(isDisposing);
rulesetDependencies?.Dispose(); if (rulesetDependencies.IsNotNull())
rulesetDependencies.Dispose();
} }
} }
} }