未验证 提交 e7b757c2 编写于 作者: A Aaron Robinson 提交者: GitHub

Release `CordbUnmanagedThread` instance from `CordbProcess` member (#66910)

* Release CordbUnmanagedThread from CordbProcess member

The m_lastDispatchedIBEvent was not being cleared during shutdown, which was causing a memory leak assert to fire.
Co-authored-by: NAdeel Mujahid <3840695+am11@users.noreply.github.com>
上级 d8f85275
......@@ -1312,6 +1312,12 @@ void CordbProcess::NeuterChildren()
m_steppers.NeuterAndClear(GetProcessLock());
#ifdef FEATURE_INTEROP_DEBUGGING
if (m_lastDispatchedIBEvent != NULL)
{
m_lastDispatchedIBEvent->m_owner->InternalRelease();
m_lastDispatchedIBEvent = NULL;
}
m_unmanagedThreads.NeuterAndClear(GetProcessLock());
#endif // FEATURE_INTEROP_DEBUGGING
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册