From ac0081de10dc1c494c8366b93cc3e0cc9e275a03 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Thu, 14 May 2020 10:06:14 +0200 Subject: [PATCH] Fix crash on exit with MSVC --- include/Memory.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/Memory.h b/include/Memory.h index 5425b6c87..91a5a54e7 100644 --- a/include/Memory.h +++ b/include/Memory.h @@ -51,6 +51,7 @@ public: }; static MemoryManager::MmCounter _mm_counter; +static thread_local MemoryManager::MmCounter _mm_thread_counter; template class MmAllocator @@ -73,10 +74,6 @@ public: } typedef std::vector > vector; - -private: - MemoryManager::MmCounter m_counter; - MemoryManager::ThreadGuard m_threadGuard; }; class _AlignedAllocator_Base