From dfa6f5c75f700aa38da1cdda95228cc980ef9fd2 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 10 Jun 2021 17:01:24 +0200 Subject: [PATCH] Fix profiler shutdown issue on end --- Source/Engine/Profiler/ProfilingTools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Profiler/ProfilingTools.cpp b/Source/Engine/Profiler/ProfilingTools.cpp index 4afab6c04..daedf2a61 100644 --- a/Source/Engine/Profiler/ProfilingTools.cpp +++ b/Source/Engine/Profiler/ProfilingTools.cpp @@ -23,7 +23,7 @@ public: } void Update() override; - void BeforeExit() override; + void Dispose() override; }; ProfilingToolsService ProfilingToolsServiceInstance; @@ -166,7 +166,7 @@ void ProfilingToolsService::Update() #endif } -void ProfilingToolsService::BeforeExit() +void ProfilingToolsService::Dispose() { ProfilingTools::EventsCPU.Clear(); ProfilingTools::EventsCPU.SetCapacity(0);