mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Fix memory leak in Optick when ThreadEntry is terminated while still in scope (i.e. exit)
This commit is contained in:
parent
f9f256c29c
commit
f714e791fe
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue