Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo error
  • Loading branch information
amos402 authored and Martin-Molinero committed Mar 27, 2019
commit 0ed8bee39f3b0715e8fe7fb96bf161ce9ec00f4d
4 changes: 2 additions & 2 deletions src/embed_tests/TestFinalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public void ValidateRefCount()
Runtime.Runtime.XIncref(e.Handle);
return false;
};
Finalizer.Instance.IncorrectRefCntResovler += handler;
Finalizer.Instance.IncorrectRefCntResolver += handler;
try
{
ptr = CreateStringGarbage();
Expand All @@ -223,7 +223,7 @@ public void ValidateRefCount()
}
finally
{
Finalizer.Instance.IncorrectRefCntResovler -= handler;
Finalizer.Instance.IncorrectRefCntResolver -= handler;
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/runtime/finalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public IncorrectRefCountException(IntPtr ptr)
}

public delegate bool IncorrectRefCntHandler(object sender, IncorrectFinalizeArgs e);
public event IncorrectRefCntHandler IncorrectRefCntResovler;
public event IncorrectRefCntHandler IncorrectRefCntResolver;
public bool ThrowIfUnhandleIncorrectRefCount { get; set; } = true;

#endregion
Expand Down Expand Up @@ -304,9 +304,9 @@ private void ValidateRefCount()
ImpactedObjects = indexer[handle]
};
bool handled = false;
if (IncorrectRefCntResovler != null)
if (IncorrectRefCntResolver != null)
{
var funcList = IncorrectRefCntResovler.GetInvocationList();
var funcList = IncorrectRefCntResolver.GetInvocationList();
foreach (IncorrectRefCntHandler func in funcList)
{
if (func(this, args))
Expand Down