summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apt/apt.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-28 04:01:48 +0200
committerbunnei <bunneidev@gmail.com>2015-05-02 00:27:02 +0200
commite0cb85691a99fb06dbce5e802ae756a944b1a66c (patch)
treed82acb9b470acec2f5faf5b2c6d9ea7cd6982018 /src/core/hle/service/apt/apt.cpp
parentMemory: Properly cleanup & shutdown. (diff)
downloadyuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.gz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.bz2
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.lz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.xz
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.tar.zst
yuzu-e0cb85691a99fb06dbce5e802ae756a944b1a66c.zip
Diffstat (limited to 'src/core/hle/service/apt/apt.cpp')
-rw-r--r--src/core/hle/service/apt/apt.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp
index 190c5df7a..98ae80b3a 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -28,15 +28,15 @@ namespace APT {
static const VAddr SHARED_FONT_VADDR = 0x18000000;
/// Handle to shared memory region designated to for shared system font
-static Kernel::SharedPtr<Kernel::SharedMemory> shared_font_mem = nullptr;
+static Kernel::SharedPtr<Kernel::SharedMemory> shared_font_mem;
-static Kernel::SharedPtr<Kernel::Mutex> lock = nullptr;
-static Kernel::SharedPtr<Kernel::Event> notification_event = nullptr; ///< APT notification event
-static Kernel::SharedPtr<Kernel::Event> start_event = nullptr; ///< APT start event
+static Kernel::SharedPtr<Kernel::Mutex> lock;
+static Kernel::SharedPtr<Kernel::Event> notification_event; ///< APT notification event
+static Kernel::SharedPtr<Kernel::Event> start_event; ///< APT start event
static std::vector<u8> shared_font;
-static u32 cpu_percent = 0; ///< CPU time available to the running application
+static u32 cpu_percent; ///< CPU time available to the running application
void Initialize(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
@@ -309,6 +309,7 @@ void Init() {
}
lock = Kernel::Mutex::Create(false, "APT_U:Lock");
+
cpu_percent = 0;
// TODO(bunnei): Check if these are created in Initialize or on APT process startup.
@@ -317,7 +318,11 @@ void Init() {
}
void Shutdown() {
-
+ shared_font.clear();
+ shared_font_mem = nullptr;
+ lock = nullptr;
+ notification_event = nullptr;
+ start_event = nullptr;
}
} // namespace APT