mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03: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
|
|
@ -135,10 +135,10 @@ namespace Dalamud.Game
|
|||
/// <summary>
|
||||
/// Dispose of managed and unmanaged resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
Service<GameGui>.GetNullable()?.Dispose();
|
||||
Service<GameNetwork>.GetNullable()?.Dispose();
|
||||
Service<GameGui>.GetNullable()?.ExplicitDispose();
|
||||
Service<GameNetwork>.GetNullable()?.ExplicitDispose();
|
||||
|
||||
this.updateHook?.Disable();
|
||||
this.destroyHook?.Disable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue