Skip to content

Commit

Permalink
Unregister callback when setting a provider for deferred delete (dotn…
Browse files Browse the repository at this point in the history
  • Loading branch information
davmason authored Jul 31, 2020
1 parent e306489 commit d32ba13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/src/vm/eventpipeprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ void EventPipeProvider::SetDeleteDeferred()
{
LIMITED_METHOD_CONTRACT;
m_deleteDeferred = true;
// EventSources will be collected once they ungregister themselves,
// so we can't call back in to them.
m_pCallbackFunction = NULL;
}

void EventPipeProvider::RefreshAllEvents()
Expand Down

0 comments on commit d32ba13

Please sign in to comment.