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
commit4e453935a32947d14825eb67e71542e228e494a9 (patch)
tree0c804e775e8a7313bf3e55d4cbfa5c6142a73851 /src/core/hle/service/pctl/pctl_module.cpp
parent99b8976a5fa1cdf5a67b99b00c768b7b2fe3a274 (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 938330dd00..6a7fd72bcd 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) {