Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibGit2Sharp/Core/NativeMethods.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs
index adfea56f..56eadf17 100644
--- a/LibGit2Sharp/Core/NativeMethods.cs
+++ b/LibGit2Sharp/Core/NativeMethods.cs
@@ -2,6 +2,7 @@ using System;
using System.Globalization;
using System.IO;
using System.Runtime.CompilerServices;
+using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core.Handles;
@@ -51,7 +52,7 @@ namespace LibGit2Sharp.Core
}
// Shutdown the native library in a finalizer.
- private sealed class NativeShutdownObject
+ private sealed class NativeShutdownObject : CriticalFinalizerObject
{
~NativeShutdownObject()
{