Skip to content

Commit

Permalink
Clear the PagedEntityContainer<STRUCTURE> in objmemShutdown()
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 24, 2024
1 parent 95c695f commit 326aaec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objmem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void objmemShutdown()
{
auto& droidContainer = GlobalDroidContainer();
droidContainer.clear();
auto& structContainer = GlobalStructContainer();
structContainer.clear();
}

// Check that psVictim is not referred to by any other object in the game. We can dump out some extra data in debug builds that help track down sources of dangling pointer errors.
Expand Down

0 comments on commit 326aaec

Please sign in to comment.