Skip to content

Commit

Permalink
Merge pull request #254 from ruifig/ruifig-252
Browse files Browse the repository at this point in the history
Fix for #252
  • Loading branch information
dwilliamson committed Dec 22, 2023
2 parents 4e65390 + 7b22558 commit 616fdf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Remotery.c
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

0 comments on commit 616fdf2

Please sign in to comment.