mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 23:07:43 +01:00
refactor: make all PluginInterface classes explicitly disposable
This commit is contained in:
parent
33f230fa75
commit
2d90598b70
16 changed files with 43 additions and 29 deletions
|
|
@ -23,6 +23,7 @@ using Dalamud.Logging.Internal;
|
|||
using Dalamud.Plugin.Internal;
|
||||
using Dalamud.Plugin.Ipc.Internal;
|
||||
using Dalamud.Support;
|
||||
using Dalamud.Utility;
|
||||
using Serilog;
|
||||
using Serilog.Core;
|
||||
using Serilog.Events;
|
||||
|
|
@ -334,13 +335,13 @@ namespace Dalamud
|
|||
Thread.Sleep(100);
|
||||
}
|
||||
|
||||
Service<Framework>.GetNullable()?.Dispose();
|
||||
Service<ClientState>.GetNullable()?.Dispose();
|
||||
Service<Framework>.GetNullable()?.ExplicitDispose();
|
||||
Service<ClientState>.GetNullable()?.ExplicitDispose();
|
||||
|
||||
this.unloadSignal?.Dispose();
|
||||
|
||||
Service<WinSockHandlers>.GetNullable()?.Dispose();
|
||||
Service<DataManager>.GetNullable()?.Dispose();
|
||||
Service<DataManager>.GetNullable()?.ExplicitDispose();
|
||||
Service<AntiDebug>.GetNullable()?.Dispose();
|
||||
Service<DalamudAtkTweaks>.GetNullable()?.Dispose();
|
||||
Service<HookManager>.GetNullable()?.Dispose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue