Merge pull request #11943 from peppy/remove-simple-finalizers

Remove easy to remove finalizers
This commit is contained in:
Dan Balasescu
2021-03-02 20:53:09 +09:00
committed by GitHub
4 changed files with 2 additions and 10 deletions

View File

@ -54,10 +54,5 @@ namespace osu.Game.Database
Dispose(true);
GC.SuppressFinalize(this);
}
~DatabaseWriteUsage()
{
Dispose(false);
}
}
}

View File

@ -63,6 +63,7 @@ namespace osu.Game.Rulesets.UI
~DrawableRulesetDependencies()
{
// required to potentially clean up sample store from audio hierarchy.
Dispose(false);
}

View File

@ -36,6 +36,7 @@ namespace osu.Game.Skinning
~Skin()
{
// required to potentially clean up sample store from audio hierarchy.
Dispose(false);
}

View File

@ -86,11 +86,6 @@ namespace osu.Game.Utils
#region Disposal
~SentryLogger()
{
Dispose(false);
}
public void Dispose()
{
Dispose(true);