summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-02-20 20:51:11 -0500
committerGravatar ameerj2021-02-20 20:51:11 -0500
commit8e4c9c9852b17082f9cb2e2b3d954dee6be7280f (patch)
tree15e4fc8fb15f1d574063d89649c62bda74ac02b2 /src/core/core.cpp
parentMerge pull request #5965 from Morph1984/shader-count (diff)
downloadyuzu-8e4c9c9852b17082f9cb2e2b3d954dee6be7280f.tar.gz
yuzu-8e4c9c9852b17082f9cb2e2b3d954dee6be7280f.tar.xz
yuzu-8e4c9c9852b17082f9cb2e2b3d954dee6be7280f.zip
kernel: Fix resource release exception on exit
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance. This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 30f5e1128..de6305e2a 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -308,6 +308,9 @@ struct System::Impl {
308 // Close all CPU/threading state 308 // Close all CPU/threading state
309 cpu_manager.Shutdown(); 309 cpu_manager.Shutdown();
310 310
311 // Release the Time Manager's resources
312 time_manager.Shutdown();
313
311 // Shutdown kernel and core timing 314 // Shutdown kernel and core timing
312 core_timing.Shutdown(); 315 core_timing.Shutdown();
313 kernel.Shutdown(); 316 kernel.Shutdown();