Fix memory leak in Optick when ThreadEntry is terminated while still in scope (i.e. exit)

This commit is contained in:
Stephen Saunders 2023-12-28 09:24:48 -05:00
parent f9f256c29c
commit f714e791fe

View file

@ -342,6 +342,9 @@ struct ThreadEntry
{
*threadTLS = nullptr;
}
// SRS - make sure thread storage is empty before thread entry terminates
storage.Clear(false);
}
void Activate(Mode::Type mode);
void Sort();