diff --git a/LibGit2Sharp/Core/ObjectSafeWrapper.cs b/LibGit2Sharp/Core/ObjectSafeWrapper.cs index 74069431f..e7f610772 100644 --- a/LibGit2Sharp/Core/ObjectSafeWrapper.cs +++ b/LibGit2Sharp/Core/ObjectSafeWrapper.cs @@ -37,10 +37,5 @@ private void Dispose(bool disposing) { objectPtr.SafeDispose(); } - - ~ObjectSafeWrapper() - { - Dispose(false); - } } } diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index 0a034ab3f..c1818e3e4 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -131,14 +131,6 @@ private void EagerlyLoadTheConfigIfAnyPathHaveBeenPassed(RepositoryOptions optio } } - /// - /// Takes care of releasing all non-managed remaining resources. - /// - ~Repository() - { - Dispose(false); - } - internal RepositorySafeHandle Handle { get { return handle; }