libstratosphere: Cleanup resources when doing OutSession for domains.

This commit is contained in:
Michael Scire 2018-06-24 12:38:54 -06:00
parent 1b356cd4f2
commit ba805d2c8a

View File

@ -400,6 +400,7 @@ void EncodeValueIntoIpcMessageBeforePrepare(DomainOwner *domain_owner, IpcComman
domain_owner->reserve_object(value.session->get_service_object(), &value.domain_id);
}
value.session->close_handles();
delete value.session;
} else {
ipcSendHandleMove(c, value.session ? value.session->get_client_handle() : 0x0);
}