From e8158276127144101c2fa056de0f50940f8b4c11 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:26:46 -0400 Subject: [PATCH] Clear the PagedEntityContainer in objmemShutdown() --- src/objmem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objmem.cpp b/src/objmem.cpp index 22bd0bf3d18..e491183efbd 100644 --- a/src/objmem.cpp +++ b/src/objmem.cpp @@ -86,6 +86,8 @@ bool objmemInitialise() /* Release the object heaps */ void objmemShutdown() { + auto& droidContainer = GlobalDroidContainer(); + droidContainer.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.