1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 12:42:54 +08:00

Dispose DrawableRulesetDependencies in HitObjectComposer

This commit is contained in:
Derrick Timmermans 2022-11-25 08:27:22 +01:00
parent 7b620392fe
commit 65e5c9a3ae
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17

View File

@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.Edit
protected readonly Ruleset Ruleset; protected readonly Ruleset Ruleset;
// Provides `Playfield` // Provides `Playfield`
private DependencyContainer dependencies; private DrawableRulesetDependencies dependencies;
[Resolved] [Resolved]
protected EditorClock EditorClock { get; private set; } protected EditorClock EditorClock { get; private set; }
@ -410,6 +410,13 @@ namespace osu.Game.Rulesets.Edit
} }
#endregion #endregion
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
dependencies.Dispose();
}
} }
/// <summary> /// <summary>