From 90d01c575ed6e377c5ca19a77a36bb8e3eca482f Mon Sep 17 00:00:00 2001 From: Tharylia <41393569+Tharylia@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:07:23 +0200 Subject: [PATCH] #956 Fix unloading module views --- .../GameServices/Modules/UI/Views/ManageModuleView.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Blish HUD/GameServices/Modules/UI/Views/ManageModuleView.cs b/Blish HUD/GameServices/Modules/UI/Views/ManageModuleView.cs index 515112963..5c43b1856 100644 --- a/Blish HUD/GameServices/Modules/UI/Views/ManageModuleView.cs +++ b/Blish HUD/GameServices/Modules/UI/Views/ManageModuleView.cs @@ -359,5 +359,13 @@ private void UpdateModuleRunState(string status, Color color, string tooltip = n _moduleStateLabel.BasicTooltipText = tooltip; } + protected override void Unload() { + base.Unload(); + + _permissionView?.Dispose(); + _dependencyView?.Dispose(); + _settingView?.Dispose(); + } + } }