JSON deserialisation object disposal
Clash Royale CLAN TAG#URR8PPP
JSON deserialisation object disposal
I have some code like this:
vars
json: JadeJson;
objs: ObjectArray;
foo: Foo;
begin
create json transient;
create objs transient;
foo := json.parse(response, Foo, objs).Foo;
// Do something with foo
epilog
delete json;
delete objs;
end;
Is foo deleted by the call to delete objs, or do I need to dispose of it (any any other object stored in objs) separately?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.