Skip to content

Commit

Permalink
missing nullable dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
xorus committed Feb 9, 2022
1 parent ebf822e commit cdd1816
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions PluginCommandManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private void RemoveCommandHandlers()

public void Dispose()
{
GC.SuppressFinalize(this);
RemoveCommandHandlers();
}
}
Expand Down
1 change: 1 addition & 0 deletions PluginUi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void OpenSettings()

public void Dispose()
{
GC.SuppressFinalize(this);
_stopwatch?.Dispose();
_dtrBarUi?.Dispose();
}
Expand Down
3 changes: 2 additions & 1 deletion Ui/DtrBarUi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public void Update()

public void Dispose()
{
_entry.Dispose();
GC.SuppressFinalize(this);
_entry?.Dispose();
}
}
}
1 change: 1 addition & 0 deletions Ui/FloatingWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ private void BuildFont()

public void Dispose()
{
GC.SuppressFinalize(this);
_pluginInterface.UiBuilder.BuildFonts -= BuildFont;
_pluginInterface.UiBuilder.RebuildFonts();
// _font.Destroy(); - crashes when I do this
Expand Down

0 comments on commit cdd1816

Please sign in to comment.