* Metadata and rows are raw JSON object, freeandnil will not work

This commit is contained in:
michael 2018-01-20 14:10:43 +00:00
parent 6f51b33077
commit f13f7c6167

View File

@ -374,8 +374,8 @@ procedure TBaseJSONDataSet.FreeData;
begin begin
If FOwnsData then If FOwnsData then
begin begin
FreeAndNil(FRows); FRows:=Nil
FreeAndNil(FMetaData); FMetaData:=Nil;
end; end;
if (FCurrentList<>FDefaultList) then if (FCurrentList<>FDefaultList) then
FreeAndNil(FCurrentList) FreeAndNil(FCurrentList)