summaryrefslogtreecommitdiff
path: root/src/core/hle/service/pctl
diff options
context:
space:
mode:
authorGravatar german772023-10-29 13:45:53 -0600
committerGravatar german772023-10-29 13:52:12 -0600
commit6e883a26da52b84086340ca5b5d38f55ef04bf8d (patch)
tree0c804e775e8a7313bf3e55d4cbfa5c6142a73851 /src/core/hle/service/pctl
parentMerge pull request #11880 from abouvier/unbundle-stb (diff)
downloadyuzu-6e883a26da52b84086340ca5b5d38f55ef04bf8d.tar.gz
yuzu-6e883a26da52b84086340ca5b5d38f55ef04bf8d.tar.xz
yuzu-6e883a26da52b84086340ca5b5d38f55ef04bf8d.zip
core: Close all KEvents
Diffstat (limited to 'src/core/hle/service/pctl')
-rw-r--r--src/core/hle/service/pctl/pctl_module.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/pctl/pctl_module.cpp b/src/core/hle/service/pctl/pctl_module.cpp
index 938330dd0..6a7fd72bc 100644
--- a/src/core/hle/service/pctl/pctl_module.cpp
+++ b/src/core/hle/service/pctl/pctl_module.cpp
@@ -141,6 +141,12 @@ public:
141 service_context.CreateEvent("IParentalControlService::RequestSuspensionEvent"); 141 service_context.CreateEvent("IParentalControlService::RequestSuspensionEvent");
142 } 142 }
143 143
144 ~IParentalControlService() {
145 service_context.CloseEvent(synchronization_event);
146 service_context.CloseEvent(unlinked_event);
147 service_context.CloseEvent(request_suspension_event);
148 };
149
144private: 150private:
145 bool CheckFreeCommunicationPermissionImpl() const { 151 bool CheckFreeCommunicationPermissionImpl() const {
146 if (states.temporary_unlocked) { 152 if (states.temporary_unlocked) {