1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

libstratosphere: Cleanup resources when doing OutSession for domains.

This commit is contained in:
Michael Scire 2018-06-24 12:38:54 -06:00
parent ad636f7216
commit 284677c486

View file

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