diff options
| author | 2023-10-29 13:45:53 -0600 | |
|---|---|---|
| committer | 2023-10-29 13:52:12 -0600 | |
| commit | 6e883a26da52b84086340ca5b5d38f55ef04bf8d (patch) | |
| tree | 0c804e775e8a7313bf3e55d4cbfa5c6142a73851 /src/core/hle/service/pctl | |
| parent | Merge pull request #11880 from abouvier/unbundle-stb (diff) | |
| download | yuzu-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.cpp | 6 |
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 | |||
| 144 | private: | 150 | private: |
| 145 | bool CheckFreeCommunicationPermissionImpl() const { | 151 | bool CheckFreeCommunicationPermissionImpl() const { |
| 146 | if (states.temporary_unlocked) { | 152 | if (states.temporary_unlocked) { |