diff --git a/src/memory/Code/FunctionHookGate.cs b/src/memory/Code/FunctionHookGate.cs index 77f7adb..18e536b 100644 --- a/src/memory/Code/FunctionHookGate.cs +++ b/src/memory/Code/FunctionHookGate.cs @@ -6,7 +6,7 @@ internal static unsafe class FunctionHookGate { private sealed class GateContext { - public readonly ref struct HookGuard + public readonly ref struct HookGuard : IDisposable { public bool IsOwned => _context != null;