diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-29 19:46:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-29 19:46:47 -0400 |
| commit | adb090090605d3b1f4368fb0c7bc836206aa4bdf (patch) | |
| tree | c152945e6c527e90def56460b763c44b7cede53f /src/core/hle/service/pctl/pctl_module.cpp | |
| parent | 2d608cd62526a0dbde286c80e714d5b24725a8f9 (diff) | |
| parent | 6e883a26da52b84086340ca5b5d38f55ef04bf8d (diff) | |
Merge pull request #11911 from german77/leak_event
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.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: 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) { |
