Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #252 #254

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Remotery.c
Original file line number Diff line number Diff line change
Expand Up @@ -7049,6 +7049,8 @@ static void Remotery_Destructor(Remotery* rmt)
// Join the remotery thread before clearing the global object as the thread is profiling itself
rmtDelete(rmtThread, rmt->thread);

rmtDelete(ThreadProfilers, rmt->threadProfilers);

if (g_RemoteryCreated)
{
g_Remotery = NULL;
Expand All @@ -7058,8 +7060,6 @@ static void Remotery_Destructor(Remotery* rmt)
rmtDelete(ObjectAllocator, rmt->propertyAllocator);


rmtDelete(ThreadProfilers, rmt->threadProfilers);

#if RMT_USE_D3D12
while (rmt->d3d12Binds != NULL)
{
Expand Down