Hello,
we identified that the generated code of your OpenAPI generator has no handling for freeing sub objects.
Example:
In this example the items of the array Data was not released, when the TsgcOpenAPI_ListOrganizationsResponse_Class instance get freed.
The generator should dynamically generate a destructor with special handling for such cases.
Best regards,
Waldemar Derr
we identified that the generated code of your OpenAPI generator has no handling for freeing sub objects.
Example:
TsgcOpenAPI_ListOrganizationsResponse_Class = class(TsgcOpenAPIClass)
private
Fdata: TArray<TsgcOpenAPI_OrganizationResponse_Class>; // <-- No release of this objects!
Fcount: integer;
F_type: String;
public
class function Read(const aValue: string): TsgcOpenAPI_ListOrganizationsResponse_Class;
public
property Data: TArray<TsgcOpenAPI_OrganizationResponse_Class> read Fdata write Fdata;
property Count: integer read Fcount write Fcount;
property _type: String read F_type write F_type;
end;
In this example the items of the array Data was not released, when the TsgcOpenAPI_ListOrganizationsResponse_Class instance get freed.
The generator should dynamically generate a destructor with special handling for such cases.
Best regards,
Waldemar Derr