aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/pctl/pctl_module.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-10-29 13:45:53 -0600
committergerman77 <juangerman-13@hotmail.com>2023-10-29 13:52:12 -0600
commit6e883a26da52b84086340ca5b5d38f55ef04bf8d (patch)
tree0c804e775e8a7313bf3e55d4cbfa5c6142a73851 /src/core/hle/service/pctl/pctl_module.cpp
parent43be2bfe332d5537041262eb08037993239eaf5f (diff)
core: Close all KEvents
Diffstat (limited to 'src/core/hle/service/pctl/pctl_module.cpp')
-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:
service_context.CreateEvent("IParentalControlService::RequestSuspensionEvent");
}
+ ~IParentalControlService() {
+ service_context.CloseEvent(synchronization_event);
+ service_context.CloseEvent(unlinked_event);
+ service_context.CloseEvent(request_suspension_event);
+ };
+
private:
bool CheckFreeCommunicationPermissionImpl() const {
if (states.temporary_unlocked) {