aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-02-20 20:51:11 -0500
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-20 20:51:11 -0500
commit8e4c9c9852b17082f9cb2e2b3d954dee6be7280f (patch)
tree15e4fc8fb15f1d574063d89649c62bda74ac02b2 /src/core/core.cpp
parent2807a98168a08a0cebe5c0db42d14d0f2f03f117 (diff)
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 30f5e11280..de6305e2a4 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -308,6 +308,9 @@ struct System::Impl {
// Close all CPU/threading state
cpu_manager.Shutdown();
+ // Release the Time Manager's resources
+ time_manager.Shutdown();
+
// Shutdown kernel and core timing
core_timing.Shutdown();
kernel.Shutdown();