core: Close all KEvents

This commit is contained in:
german77 2023-10-29 13:45:53 -06:00
parent 43be2bfe33
commit 6e883a26da
6 changed files with 26 additions and 5 deletions

View file

@ -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) {