未验证 提交 aea3ac56 编写于 作者: V Vladimir Sadov 提交者: GitHub

Possible leak of a weak handle in `Gen2GcCallback` (#53701)

上级 ab820d7a
......@@ -71,6 +71,7 @@ public static void Register(Func<object, bool> callback, object targetObj)
if (!_callback1(targetObj))
{
// If the callback returns false, this callback object is no longer needed.
_weakTargetObj.Free();
return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册