Skip to content

Commit

Permalink
Make HookGuard implement IDisposable (C# 13).
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Nov 13, 2024
1 parent 75b5724 commit 5293e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/Code/FunctionHookGate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5293e4b

Please sign in to comment.