From 0cf78a34ba4014d5893667502f3336e36196754b Mon Sep 17 00:00:00 2001 From: ameerj <52414509+ameerj@users.noreply.github.com> Date: Thu, 4 Nov 2021 20:19:58 -0400 Subject: [PATCH] core: Reorder perf_stats destruction order on Shutdown Avoids the gpu_core using perf_stats after it's been freed. --- src/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 85485773f..d6cf44ce3 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -324,8 +324,8 @@ struct System::Impl { time_manager.Shutdown(); core_timing.Shutdown(); app_loader.reset(); - perf_stats.reset(); gpu_core.reset(); + perf_stats.reset(); kernel.Shutdown(); memory.Reset(); applet_manager.ClearAll();